Skip to content

Instantly share code, notes, and snippets.

@KentaKomai
Created June 23, 2014 00:33
Show Gist options
  • Save KentaKomai/a7abfbee770750446423 to your computer and use it in GitHub Desktop.
Save KentaKomai/a7abfbee770750446423 to your computer and use it in GitHub Desktop.
rotate_center_2
void setup(){
size(1000, 750);
colorMode(RGB, 100);
frameRate(10);
background(100);
noStroke();
}
void draw(){
background(100);
for(int i=0; i<1200; i++){
float color1 = random(0,10);
float color2 = random(70, 100);
fill(color1, color2, color2, 60);
float x = random(width);
float y = random(height);
//pushMatrix();
//translate(width/2, height/2);
rotate( radians( random(360) ) );
rect(width/2,height/2,40,40);
//stop();
//popMatrix();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment