Timeline for How do I make a scrolling map within an HTML5 canvas?
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 4, 2014 at 20:08 | history | edited | Seth Battin | CC BY-SA 3.0 |
fix default matrix to identity
|
| Nov 4, 2014 at 20:03 | comment | added | Seth Battin |
setTransform is absolute, so it gives you a definite base from which to start, or to reset to. translate, rotate, and scale are relative to the existing transform, which lets them stack onto each other and be de-applied with restore. setTransform can also be de-applied with restore, if for some reason a totally different coordinate system was needed in between world-space draws.
|
|
| Nov 4, 2014 at 12:26 | comment | added | Philipp |
Why use the complicated setTransform when you can achieve the same effect in this case by using the much more readable translate?
|
|
| Nov 4, 2014 at 1:19 | history | answered | Seth Battin | CC BY-SA 3.0 |