Skip to content

Instantly share code, notes, and snippets.

@qingfeng
Forked from anonymous/snippet.txt
Created November 21, 2008 16:27
Show Gist options
  • Save qingfeng/27484 to your computer and use it in GitHub Desktop.
Save qingfeng/27484 to your computer and use it in GitHub Desktop.
void setup(){
size(600,600);
background(255);
colorMode(RGB,255);
smooth();
noStroke();
frameRate(30);
}
void draw(){
color c = color(random(252,255),random(100,183),random(190,225));
fill(c);
float wh = random(2,12);
float x = random(0,width);
float y = random(0,height);
rect(x,y,wh,wh);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment