Artists
Translations
Segrid
Translated by
v3ga
Based on:
Segrid
by
John Roy
Category:
direct
Play
Stop
// Recode of Segrid | John Roy | 1973 // diagram here : https://www.ragnardigital.art/collection/segrid let res = 17; // resolution let nbLinesMin = 1; let nbLinesMax = 9; let nbLinesHalfCell = 5; // used to compute the 'gap' between lines in a cell let margin = 0.05; // % of width let sw = 1.5; // line width in pixels let bDrawGrid = false; function setup() { createCanvas(800, 800); noLoop(); } function draw() { background(0); noFill(); strokeCap(ROUND); stroke(255); strokeWeight( sw ); // Grid if (bDrawGrid) drawGrid(); // Patterns let m = margin*width; let d = (width-2*m)/res; let cx = (res - 1) / 2; let cy = (res - 1) / 2; let dMax = floor(res / 2); for (let j=0; j