|
Author |
Topic: need help with the matrix-stack (Read 585 times) |
|
der_rabe
|
need help with the matrix-stack
« on: Feb 19th, 2004, 11:26pm » |
|
i am new to the concept of the matrix but i am eager to learn.(yes i want the blue pill, or was it the red?) i was able to figure out how i can rotate a rectangle with the following code. Code: background(0); translate(width/2,height/2); x += 2; if (x == 360) x = 0; rotate (radians(x)); rect(-20,-20,40,40); |
| But what if i wanna rotate two rectangles now, everyone around its own center. i guess that is when the matrix-stack comes into play. But i don't know how to do this. Anyone willing to help me out?
|
Bernd Salewski student of digital media Hochschule Bremen
|
|
|
der_rabe
|
Re: need help with the matrix-stack
« Reply #2 on: Feb 20th, 2004, 2:42pm » |
|
hi kevin, are you from bremen, too? thanks for the link. the thread was a real eye-opener. Bernd
|
Bernd Salewski student of digital media Hochschule Bremen
|
|
|
|