Skip to content

Instantly share code, notes, and snippets.

@sandsfish
Created May 7, 2013 15:43
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 sandsfish/5533639 to your computer and use it in GitHub Desktop.
Save sandsfish/5533639 to your computer and use it in GitHub Desktop.
float time = 0;
float radius = 0;
void setup() {
background(5);
size(displayWidth,displayHeight, OPENGL);
noStroke();
}
void draw() {
noiseDetail((int)map(mouseX, 0, displayWidth, 0, 10));
for(int y = 22; y < height-50; y+=22) {
for(int x = 25; x < width-11; x+=22) {
time = time + 0.005;
radius = map(noise(time), 0, 1, 0, 20);
fill(radius, (int)random(255), (int)random(255));
ellipse(x, y, radius, radius);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment