Description
This page is generated from the Processing project folder at /2016/LESSONS/lesson_06_color_hit_detection/lesson_06_color_hit_detection.pde.
Archive
No companion assets were found in this sketch folder.
void setup() {
size(600,400);
}
void draw() {
background(255);
fill(255,0,0);
rect(50,100,100,50);
if (get(mouseX,mouseY) == color(255,0,0)) {
print("hello");
}
fill(0,255,0);
ellipse(mouseX,mouseY,10,10);
} This page is generated from the Processing project folder at /2016/LESSONS/lesson_06_color_hit_detection/lesson_06_color_hit_detection.pde.
No companion assets were found in this sketch folder.