Skip to content

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

License

Notifications You must be signed in to change notification settings

v3ga/nouveaux_dessins_geometriques_et_artistiques

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Nouveaux dessins géométriques et artistiques avec votre micro-ordinateur

👉 https://editor.p5js.org/v3ga/collections/Q6wJic-1k

This repository presents programs written by french mathematician and computer scientist Jean-Paul Delahaye in the book "Nouveaux 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.

👉 You can find the recoded sketches of the first book "Dessins géométriques et artistiques avec votre micro-ordinateur" here : https://github.com/v3ga/dessins_geometriques_et_artistiques
👉 A big thank you to Jean-Noël Lafargue for having kindly sent to me the book and to Éric Schrafstetter for spotting bugs in some programs.

Books

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, GREEN, NEW_BLUEor NEW_YELLOW 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 = 30;
let NP=480,PI=Math.PI;
let N=400;

function setup() 
{
  INIT();
  
  for (let I = 0; I < N; I++) {
    let X = R*cos(A), Y= R*sin(A);
    let X_ = int(NP/2*(1+X)), Y_ = int(NP/2*(1+Y));
    if (I == 0) LPRINT(`M${X_},${Y_}`);
    if (I > 0) LPRINT(`D${X_},${Y_}`);
  }

  TRACE2();
}

Summary

1. Motifs répétés

Le programme MOTIFS RÉPÉTÉS

2. Des centaines de visages

Le programme DES CENTAINES DE VISAGES

3. Courbes en coordonnées polaires

4. Von Koch, Cantor et Tapis fractals

Le programme FLOCONS DE VON KOCH

Le programme « CANTOR »

Le programme TAPIS FRACTALS

5. Champs

Le programme AIGUILLES DANS UN CHAMP

Le programme FILS DANS UN CHAMP

Le programme FILS RÉGULIERS DANS UN CHAMP

6. Transformations

Le programme PREMIÈRES TRANSFORMATIONS


Le programme SECONDES TRANSFORMATIONS


7. Fractales générales

Le programme FRACTALES GÉNÉRALES









Le programme FRACTALES GÉNÉRALES ARRONDIES







8. Moirages et cubes en dimension K

Le programme LINÉAIRES MOIRAGES

Le programme CUBES EN DIMENSION K





9. Dessins implicites

Le programme IMPLICITES

Le programme GRILLES DE CERCLES

10. Fractales multivoques

Le programme FRACTALES MULTIVOQUES PARTICULIÈRES

Le programme FRACTALES MULTIVOQUES

11. Multitudes

Le programme MULTITUDES

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published