Why the result not look same?
Monkey Forums/Monkey Programming/Why the result not look same?
| ||
/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 |
| ||
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. |