Saturday, September 12, 2009

Triangles copy

// this sketch is from an anonymous, I'm saving it under my name here cause anonymous sketches are automatically cleaned up...

void setup() {
  size(500,500);
  background(0);
  noStroke();
  smooth();
}

void draw() {
  if (mousePressed == true ) {
  background(0);
  } else {
      float x = mouseX;
      float y = mouseY;
      float m = second();
      fill(255,120-m*2);
      Brushy (x, y, m*2);
  }
}

void Brushy (float x, float y, float m) {
  triangle(x-m, y+m, x, y, x+m, y+m);
}

info info

submitted by: DARYL_Gamma
views: 1959
this sketch is from an anonymous, Im saving it under my name here cause anonymous sketches are automatically cleaned up.

treeThis sketch has a parent
Tags:

comments comment

loading loading...

 

Add a comment: