Skip to content

Instantly share code, notes, and snippets.

@kunishi
Last active October 7, 2015 09:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kunishi/3141333 to your computer and use it in GitHub Desktop.
Save kunishi/3141333 to your computer and use it in GitHub Desktop.
int start;
void setup() {
size(400, 300);
colorMode(HSB, 100);
background(99);
noStroke();
start = 0;
}
void draw() {
int theta;
int i;
background(99);
start = start + 2;
theta = start;
fill(0);
for (i = 0; i < 40; i = i + 1) {
ellipse(5 + i * 10, 150 + sin(radians(theta)) * 100, 5, 5);
theta = theta + 9;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment