Created
July 16, 2017 16:31
-
-
Save runemadsen/6bda9b9b39716c5beedb650716232320 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
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