Monday, August 24, 2009

A&B Spiralling out of control

int i = 0;

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


void draw()
{
  pushMatrix();
  fill(30,200,10,10);
  stroke(200, 10, 10);
  translate(sin(radians(i)) * (i / 2) + (width / 2), cos(radians(i)) * (i / 2) + (height/2));
  rotate(i);
  rect(0, 0, i%600, i%600);
  popMatrix();
  i++;
}


void mousePressed()
{
  background(255);
  i=0;  
}

info info

submitted by: sophie_mcdonald
views: 1917
A sketch based on <A href="http://www.sketchpatch.net/view/E7N1OWhsfVR/">Hello World by subflux</A> with even more rotating and some alpha blending.

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

comments comment

loading loading...

 

Add a comment: