Skip to content

Instantly share code, notes, and snippets.

@macklinu
Last active December 12, 2015 03:09
Show Gist options
  • Select an option

  • Save macklinu/4704944 to your computer and use it in GitHub Desktop.

Select an option

Save macklinu/4704944 to your computer and use it in GitHub Desktop.
spinning curve
// Spinning Curve
//
// p.js
/* @pjs pauseOnBlur="true"; */
void setup() {
size(600, 600);
smooth();
frameRate(15);
}
void draw() {
background(255);
for (int i = 0; i < 100; i++) {
float rw = random(width);
float rh = random(height);
curve(rw, rh, rw, rh, rw, rh, rw, rh);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment