Skip to content

Instantly share code, notes, and snippets.

@caioluders
Created December 28, 2022 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caioluders/e350bf026a9f2931526b7326c604b6ce to your computer and use it in GitHub Desktop.
Save caioluders/e350bf026a9f2931526b7326c604b6ce to your computer and use it in GitHub Desktop.
import processing.svg.*;
void setup() {
size(1000,1000);
float p = random(0,500);
float n = random(0,500/10);
background(255);
beginRecord(SVG,"shell.svg");
for (var i = 0; i < 500+200; i += 3.5) {
noFill();
stroke(0 ); //shell
strokeWeight(noise(i)*1.5);
beginShape();
vertex(i, 0);
bezierVertex(n/2, i, n, i, n, p);
endShape();
}
endRecord();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment