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 › translate translates all voids
Page Index Toggle Pages: 1
translate translates all voids? (Read 518 times)
translate translates all voids?
Sep 27th, 2007, 1:41pm
 
hello. if i have to functions and they are put inside draw, if then one of the voids have a translate function inside it,, then all of the things inside the other void is also translated. how can i change this?
Re: translate translates all voids?
Reply #1 - Sep 27th, 2007, 2:06pm
 
you can use pushMatrix() and popMatrix() for this.

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

http://processing.org/reference/popMatrix_.html
Re: translate translates all voids?
Reply #2 - Sep 28th, 2007, 12:43pm
 
fanks a lot!
Page Index Toggle Pages: 1