Why the result not look same?

Monkey Forums/Monkey Programming/Why the result not look same?

hsutuo(Posted 2014) [#1]
/code
Cls 127,0,0
SetAlpha 0.5

Translate 320, 240
Scale 1.1, 1.1
Rotate 30
Translate 50, 50

Rotate -100
Scale 0.9, 1.5

DrawRect 0, 0, 100, 100
/code

------------------------------------------------------------------------------------------------------
/code
Cls 127,0,0
SetAlpha 0.5

Translate 320, 240
Scale 1.1, 1.1
Rotate 30
Translate 50, 50

Scale 0.9, 1.5 'change position
Rotate -100

DrawRect 0, 0, 100, 100
/code


Shinkiro1(Posted 2014) [#2]
The order of translate, scale and rotate do matter.
The following draw commands will always use the translation point as an anchor to rotate/scale around.

For a more in depth explanation you can google translate, scale, rotate order (probably + opengl)
You should find a lot of stackverflow topics on it.