-
Processing help
Hi guys I recently got into this and need some help developing a certain app. The instructions of the app is to make the color of the app change. I am using Processing now and the instructions is to use the IF/ELSE. I am familiar with PHP but this is a bit new to me. I have to use mouseX and mouseY. here is the code I have. I want it that when I click over the left top square it changed both black squares white.
Code:
int x;
int y;
void setup() {
loop();
size(200, 200);
background(255,0,0);
fill(0);
rect(0, 0, 100, 100);
fill(0);
rect(100, 100, 100, 100);
}
if (mouseX - (0, 0, 100, 100)) {
fill(255);
rect(0, 0, 100, 100);
fill(255);
rect(100, 100, 100, 100);
}
-
Can you clear-up bit more your requirement? Do you want to fill colors in a specific area?
-
eranga, don't waste your time as this was cross-posted in the sun forum with extensive discussion there.
-
Oops, better to register on Sun forums as well. I really hate this, I'm looking to help anytime, but not in this way.