Discussion:
Nodebox coordinate system
Stuart Axon
2010-01-29 19:42:33 UTC
Permalink
I'm a bit confused with Nodebox and 'CENTER':

if you do:

rotate(45)
rect(0, 100, 100, 100)

The rectangle appears at 0, 100 - rotated 45 degrees.
- This confused me: I was expecting what happens
in the next example.

if you do:
rotate(45)
translate(0, 100)
rect(0, 0, 100, 100)


Then the rotation is applied before doing the translation.
(the rectangle will be offset)

Can anyone explain how the order is decided to apply the
transforms ? - I'm a bit confused.

S++

Loading...