Skip to content

Instantly share code, notes, and snippets.

@runemadsen
Created July 16, 2017 16:31
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 runemadsen/6bda9b9b39716c5beedb650716232320 to your computer and use it in GitHub Desktop.
Save runemadsen/6bda9b9b39716c5beedb650716232320 to your computer and use it in GitHub Desktop.
function setup() {
createCanvas(600, 600);
noiseDetail(4, 0.75);
noiseSeed(3);
}
function draw() {
background(30);
var noiseStep = frameCount/100;
translate(width/2, 100);
beginShape();
for(var degree = 0; degree <= 180; degree += 3) {
var x = cos(radians(degree)) * 200;
var y = sin(radians(degree)) * 200;
if(degree > 10 && degree < 170) {
y += noise(noiseStep) * 150;
}
vertex(x, y);
noiseStep += 0.04;
}
endShape();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment