Skip to content

Instantly share code, notes, and snippets.

@mataspetrikas
Created August 17, 2010 12:29
Show Gist options
  • Select an option

  • Save mataspetrikas/529691 to your computer and use it in GitHub Desktop.

Select an option

Save mataspetrikas/529691 to your computer and use it in GitHub Desktop.
Processing: Your Hair for Me
void setup() {
size(1000, 715);
background(255);
smooth();
}
void draw() {
stroke(0,random(10,16));
noFill();
beginShape();
curveVertex(random(width/2), random(height/2));
curveVertex(random(width/2, width), random(height/2));
curveVertex(random(width/2, width), random(height/2, height));
curveVertex(random((width/2)-10, (width/2)+10), random((height/2)-10, (height/2)+10));
curveVertex(random(width/2), random(height/2, height));
curveVertex(random(width/2), random(height/2));
curveVertex(random(width/2, width), random(height/2));
endShape();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment