Everett - E

By Everett Pelayo
// 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)); } }

4 Comments

  1. chensc
    Posted October 15, 2008 at 3:52 am | Permalink

    wow this is art

  2. Cindy Chi
    Posted October 15, 2008 at 3:55 pm | Permalink

    pretty radddddd.

  3. Posted October 16, 2008 at 10:33 am | Permalink

    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.

  4. Charlene Chen
    Posted October 16, 2008 at 6:26 pm | Permalink

    i love this drawing tool.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*