We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Re: Color on condition
Page Index Toggle Pages: 1
Re: Color on condition (Read 473 times)
Re: Color on condition
Oct 10th, 2009, 5:58pm
 
Your code's really fine, you just have to change your boundary for the square:
((mouseX > 150) && (mouseX < 170)) &&  ((mouseY > 20) &&  (mouseY < 25)) <-- this last number should be 40 (20 + 20, the size of the square)
--Ben
Re: Color on condition
Reply #1 - Oct 11th, 2009, 2:05am
 
yeah, I realized that just before going to bed last night.. embarrassing Roll Eyes
thanks anyway!
Page Index Toggle Pages: 1