Monday, February 1, 2016

int shapeSize = 10;

void setup()
{
  size(500, 500);
}

void draw()
{
  background(255, 255, 0);
  //enable mouse setup
  x = mouseX;
  y = mouseY;
  //color circles
  fill(255, 230, 20);
//create circles
  ellipse(x, y, sha
peSize, shapeSize);
  ellipse(x - shapeSize, y, shapeSize, shapeSize);
  ellipse(x + shapeSize, y, shapeSize, shapeSize);
}

No comments:

Post a Comment