• Stars
    star
    128
  • Rank 281,044 (Top 6 %)
  • Language
    JavaScript
  • Created about 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Recode of book "Dessins géométriques et artistiques avec votre micro-ordinateur" (1985) with p5js

Dessins géométriques et artistiques avec votre micro-ordinateur

👉 https://editor.p5js.org/v3ga/collections/ALPCSgG3E

This repository presents programs written by french mathematician and computer scientist Jean-Paul Delahaye in the book "Dessins géométriques et artistiques avec votre micro-ordinateur" published in 1985 for the Eyrolles french publishing house.

The programs were originally programmed with Microsoft Basic for Canon X-07 computer, outputs were drawn on a Canon X710 plotter. They were recoded with p5.js, the online collection can be found here. You can click on each thumb to jump to the corresponding sketch. Be sure to edit the DESSIN variable in the program header.

I contacted Jean-Paul Delahaye who gave me access to links for downloading scans of the two editions of “Dessins géométriques”. He kindly allowed me to share them.
👉 Dessins géométriques et artistiques avec votre micro-ordinateur
👉 Nouveaux dessins géométriques et artistiques avec votre micro-ordinateur

Library

I tried to be as close as possible as the original syntax, thus I developed a parser that interprets the string generated by LPRINT commands.
The library contains the following command :

Command Description
INIT set up the canvas with an initial size of 500x500 pixels, accepts {svg:true} as parameter to export to vector format
INIT2(height) set up the canvas with the width equal to 500 pixels and a custom height, accepts {svg:true} as parameter to export to vector format
INIT_WH(width,height) set up the canvas with custom width and height, accepts {svg:true} as parameter to export to vector format
LPRINT(s) concatenates s to the OUTPUT global variable used by TRACE()for drawing
TRACE() draw the output using beginShape / vertex / endShape commands by interpretating the string generated by LPRINT calls
TRACE2() draw the output, endShape is not used with CLOSE parameter
PALETTE(which) sets the palette, use RED,YELLOW or GREEN as parameter. Defaults otherwise to grey background and black stroke

Some sketches were added a translate command to center the drawing as it happened sometimes it was out of canvas bounds.

Example

let DESSIN = 1;

let NP=480,PI=Math.PI;
let K=3,CX=NP/2,CY=NP/2,R=NP*0.45,AD=0;

function setup() 
{
  INIT();
  
  for (let I = 0; I < K; I++) {
    let X = int(CX + R * cos((2 * I * PI) / K + AD));
    let Y = int(CY + R * sin((2 * I * PI) / K + AD));
    if (I == 0) LPRINT(`M${X},${Y}`);
    if (I > 0) LPRINT(`D${X},${Y}`);
  }
  
  TRACE();
}

Summary

1. Polygones, étoiles, etc.

Le programme POLYGONES RÉGULIERS

Le programme ÉTOILES RÉGULIÈRES

Le programme COMPOSITION 1

Le programme COMPOSITION 2

Le programme JOLIGONES

2. Dessins à partir de données

Le programme CHEVAL


Les programmes LION, OISEAUX-POISSONS, SMURF


3. Dragons de papiers pliés

Le programme DRAGONS

4. Étoiles fractales

Le programme ÉTOILES FRACTALES

5. Courbes

Le programme COURBES ORBITALES



Le programme COURBES TOURNANTES


Le programme COURBES SPIRALES


6. Dessins linéaires

Le programme BIPARTI COMPLET


Le programme LINÉAIRES MODULO


Le programme LINÉAIRES BÂTONS


7. Fractales simples

Le programme FRACTALES SIMPLES






Le programme FRACTALES SIMPLES ARRONDIES


Le programme FRACTALES SIMPLES DÉFORMÉES

'

8. Quadrillages élastiques

Le programme QUADRILLAGES ÉLASTIQUES

9. Surfaces

Le programme SURFACES

10. La troisième dimension

Le programme D3DATA

Le programme D3CUBE

Le programme D3STRUCTURES

More Repositories

1

Processing

A collection of sketches using various libraries I use during courses.
Processing
187
star
2

p5LearnableProgramming

Experiment and an attempt at showing how code runs into a typical p5.js program, showing how instructions are intepreted in addition to show program state.
JavaScript
126
star
3

computer_history

A set of links related to computer & code history
79
star
4

Tutorial_Generative_Hut_Processing_Axidraw

Tutorial for Generative Hut website
Processing
32
star
5

Cours_Bordeaux_Montaigne

Creative coding courses using Processing / p5.js at Bordeaux Montaigne University in France.
JavaScript
30
star
6

Workshop_Processing_Paris_2013

GL & GLSL sketches using Processing 1.5.1 and GLGraphics
Processing
20
star
7

A_P_P_A_R_E_L

apparel.normalfutu.re
C++
17
star
8

Workshop_Processing_Axidraw_Stereolux_2019

Processing
16
star
9

murmur

From sound to light, by talking to walls
C++
15
star
10

ofxJavascript

Addon for Openframeworks
C
14
star
11

Ombrocessing

Ombro-cinéma + Processing = Ombrocessing
Processing
13
star
12

ofxSoundPlayerMultiOutput

Addon for Openframeworks to play sounds on selected speakers
C++
7
star
13

Suburbia

Subdivision
Processing
6
star
14

axidraw_p5js_ln

p5.js + ln 👉 svg 👉 axidraw 🤩
JavaScript
6
star
15

Axidraw

Experiments with Axidraw + Processing
Processing
5
star
16

Cours_ECV_Bordeaux_2017

Projet Codex avec les étudiants de l'ECV Digital en collaboration avec la librairie Mollat.
Processing
5
star
17

Workshop_ECAL_2015_PushPop

JavaScript
4
star
18

Workshop_Bassens_axidraw

Atelier à la médiathèque de Bassens le 23 et 26 janvier 2019.
Processing
4
star
19

murmurRaspberry

Code for Echo chamber device in Murmur project
C++
3
star
20

Workshop_P5Geneva_2019

Processing
3
star
21

Conference_OpenTalk_Stereolux_2020

3
star
22

Processing-Bordeaux-posters

Code for Processing Bordeaux posters #07 to #14
Processing
3
star
23

ofxToolManager

addon for Openframeworks based on ofxUI
C++
2
star
24

v3ga-processing-libs

Helper classes for Processing
Java
2
star
25

Workshop_ENSAD_2017_Data_poster

Processing
2
star
26

versatubes

360 000 — Les Nuits Sonores 2012
C++
2
star
27

TypoLaser

a GRLFR project
Processing
2
star
28

Conference_Stereolux_IA_creativite

Intelligence artificielle et créativité / Stereolux / 13 décembre 2017
2
star
29

Workshop_Chaumont_OCR_2019

A typographic safari
Processing
2
star
30

Cours_Ynov_B1_2023

Cours creative coding avec les étudiants de première année à Ynov Bordeaux
2
star
31

Workshop_Processing_Stereolux_2015

Workshop «Processing Art» @ Stereolux / 20-24 Avril 2015
Processing
2
star
32

Workshop_Processing_EBA_Versailles_template

Workshop using face detection techniques
Processing
2
star
33

Akonite_Digital

Processing
1
star
34

Cours_ECV_Bordeaux_2016

Cours de design interactif à l'ECV Bordeaux
JavaScript
1
star
35

connexionUsineHydro

Connexions @ Amiens — 16/17/18 April 2015
C++
1
star
36

Workshop_Ynov_Aix_Processing_Axidraw

Atelier de création graphique programmée
Processing
1
star
37

Workshop_Processing_Stereolux_Open_Data_2013

Sketches de l'atelier
Processing
1
star
38

v3ga.github.io

HTML
1
star
39

ArduinoTurmites

2-dimensional neopixels Turing machines on Arduino
C++
1
star