// click once to set the background color
// then by clicking, you create circles based on the
// movement and placement of the cursor.
boolean hasClicked = false;
float convert;
void setup() {
size(400, 400);
smooth();
frameRate(20);
convert = .6375;
}
void draw() {
float x = mouseX;
float y = mouseY;
if (mousePressed == true) {
noStroke();
fill((x*convert), (y * convert), (y * convert), 90);
ellipse(x, y, x-pmouseX,x-pmouseX);
hasClicked = true;
}
// else if (mouseButton == RIGHT) {
// noStroke();
// fill((y * convert), (y * convert), (x*convert), 90);
// ellipse(x, y, x-pmouseX, x-pmouseX);
// hasClicked = true;
//
if (mousePressed == false && hasClicked == false) {
stroke(0);
background((x*convert), (y*convert), (y*convert));
}
}Everett - E
on Wednesday, Oct 15, 2008 – 3:12 am
4 Comments
wow this is art
pretty radddddd.
Like the idea; it’s interesting to see the colors change with different backgrounds.
Would be better for this line…
convert = .6375;
… to be an equation including the width of the window. It will make the program more scalable.
i love this drawing tool.