//to help desma students in color class.
//if the mouse is pressed, it eminates lines representative of the color wheel.
//when the mouse is released, the circle behind the lines fluctuates
//in color giving those needy desma kids a simple way to compare various
//color schemes side by side! : )
void setup (){
size (400,400);
background(255);
smooth();
}
void draw(){
if (mousePressed ==true){
int a = int(random(200,200));
strokeWeight(5);
stroke(mouseX,mouseY, pmouseX-pmouseY);
frameRate(16);
line(mouseX, mouseY, a,a);
}else {
int b = int(random(200,200));
ellipse(200,200,400,400);
noStroke();
fill(mouseY, mouseX, b, 40);
}}Monica - E
on Wednesday, Oct 15, 2008 – 9:21 am
One Comment
Interesting idea to make a radial drawing tool and the context of color class is interesting. Watch the borders, the clipping distracts from the exercise.