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.
Page Index Toggle Pages: 1
'get' function (Read 222 times)
'get' function
Oct 22nd, 2008, 2:26pm
 
hi all,

am new to processing but making fairly good headway - however i've run into a problem that is causing me some issues.

the short story is that i have a class that occurs in various rotated forms that has within it a get function to read a particular pixel color.

thing is it seems that the get function only operates from the universal co-ordinates, rather than the individual class co-ordinate systems that i have set up. this causes big problems with a rotated class for example...

is this correct? is there any way to set the get function to operate using a class' co-ordinate system rather than the universal co-ordinate system?

thanks

sam
Re: 'get' function
Reply #1 - Nov 4th, 2008, 4:46am
 
Difficult to tell as your post is a little unclear but you made need to look into the pushMatrix and popMatrix functions.

http://processing.org/reference/pushMatrix_.html

http://processing.org/reference/popMatrix_.html

Tim
Page Index Toggle Pages: 1