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.
IndexSuggestions & BugsWebsite,  Documentation,  Book Bugs › 255 should be height in MouseSignals
Page Index Toggle Pages: 1
255 should be height in MouseSignals (Read 766 times)
255 should be height in MouseSignals
Feb 13th, 2006, 4:59am
 
This is a benign one, but that could trouble beginners :

in http://processing.org/learning/examples/mousesignals.html

bvals[width-1] = 255;

should be replaced with

bvals[width-1] = height;

to remain coherent.

And if you want to tidy up the rest of the code,

xvals[width-1] = mouseX;

could be fine tune into

xvals[width-1] = mouseX*height/width;
Page Index Toggle Pages: 1