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 › Does x and y have predefined Values in processing
Page Index Toggle Pages: 1
Does x and y have predefined Values in processing? (Read 721 times)
Does x and y have predefined Values in processing?
Sep 24th, 2009, 11:53am
 
Today in CS class my professor accidently typed in X instead of the variable he had created of x....after realizing his error and seeing it actually worked without a defined variable, we noticed it randomized the value of the X variable.  he said he was not sure why this had happened, any ideas? Huh
Re: Does x and y have predefined Values in processing?
Reply #1 - Sep 24th, 2009, 12:22pm
 
Not x and y, but as you saw, X and Y. They are not the same...
See PConstants for a big list of "magic" constants... And PApplet ("fields" section) for more (constants and variables, like frameRate).
Page Index Toggle Pages: 1