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: mouseX and mouseY inaccuracies
Page Index Toggle Pages: 1
Re: mouseX and mouseY inaccuracies (Read 568 times)
Re: mouseX and mouseY inaccuracies
Nov 5th, 2007, 10:16pm
 
It's probably the "scale(0.9);" -- your rectangle isn't following the mouse, it's following 9/10ths of the mouse -- wrapping your spectrum() routine with pushMatrix()/popMatrix() should fix it by restoring original scale.
Re: mouseX and mouseY inaccuracies
Reply #1 - Nov 5th, 2007, 10:54pm
 
thank you very much! Smiley
Page Index Toggle Pages: 1