Created
December 28, 2022 16:25
-
-
Save caioluders/e350bf026a9f2931526b7326c604b6ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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