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);
}
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
submitted by: DARYL_Gammaviews: 1959
this sketch is from an anonymous, Im saving it under my name here cause anonymous sketches are automatically cleaned up.
This sketch has a parent
comments
loading...
Add a comment: