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 › Moving Rect in its local coordinate system
Page Index Toggle Pages: 1
Moving Rect in its local coordinate system (Read 816 times)
Moving Rect in its local coordinate system
Jul 13th, 2005, 5:40pm
 
I've created a video screen made of large 'pixelated' rectangles and I now wish to rotate these in repsonse to various actions (a simple analogy would be with venetian blinds). So far I've been unable to generate any rotation that is not relative to the origin....is there any way within processing that transforms can be related to a local coordinate system for the object?
Re: Moving Rect in its local coordinate system
Reply #1 - Jul 14th, 2005, 12:24am
 
The translate function allows you to indirectly do this.
Check this out:
http://processing.org/learning/tutorials/transform_1/e_rotate_2.html
Re: Moving Rect in its local coordinate system
Reply #2 - Jul 14th, 2005, 7:03pm
 
This worked perfectly - many thanks.
Page Index Toggle Pages: 1