Thursday, June 04, 2009

Gradient Square

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



int i = 0;  

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


void draw()
{      
  i++;
  noFill();
  stroke(i%255);
  rect(0, 0, i%600, i%600);
}


void mousePressed()
{
    background(255);    
}

infoinfo

submitted by: davidedc

a sketch based on Hello World by subflux

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

commentscomment

loading loading...

 

sign in to Add a comment: