Saturday, June 06, 2009

Gradient Rotating Square 3

// just type here
// and click "submit" when done



int i = 0;  

void setup()
{
  background(255);
  smooth();
  size(600,600);
}


void draw()
{      
  i++;
  fill(i%255 + random(1,10), i%255 + random(1,10), i%255 + random(1,10));
  translate(300,300);
  rotate(i);
  rect(0, 0, i%300, i%300);
}


void mousePressed()
{
    background(255);    
}

infoinfo

submitted by: DARYL_Gamma

a sketch based on Hello World by subflux

treeThis sketch has a parent
Tags: gradient, square, animation, rotating

commentscomment

loading loading...

 

sign in to Add a comment: