Skip to content

Instantly share code, notes, and snippets.

int grid=7;
float size=60;
float h_grid=float(grid)/2;
boolean[][] drawn;
color color_burn(color a, color b) {
return color(255-(255-red(b))/red(a)*255,255-(255-green(b))/green(a)*255,255-(255-blue(b))/blue(a)*255);
}
void setup() {
#N canvas -8 -8 1280 952 12;
#X obj 289 126 s \$0-b;
#X obj 291 65 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X msg 813 177 1 \, 0 100;
#X obj 813 204 line~;
#X obj 813 282 osc~;
#X obj 813 308 +~;
#X obj 813 87 i;
#X obj 850 87 + 1;
@u-ndefine
u-ndefine / 50_lines.pde
Last active June 13, 2024 08:03
Sketch of my generative art, "50 Lines"
float decel(float x) { // as an easing function
return 1-(x-1)*(x-1);
}
void setup() {
background(255);
size(750,750,P2D);
PImage img = loadImage("image.png");
strokeWeight(2);
noFill();
@u-ndefine
u-ndefine / code.pde
Last active April 27, 2020 09:50
Recaman's sequence, old one
//MODIFICATION//
let gap = 10;
let w = 29;
////////////////
let seq = [1,2,2];
let index = 2;
let circleCount = [0,0,1];