CS 491 Lecture 13 – Pinch and zoom and pan
Before class
A
Before next class:
- Watch http://youtu.be/rQC_kQtVt38.
- Read http://android-developers.blogspot.com/2010/06/making-sense-of-multitouch.html.
B
Before next class:
- Watch http://youtu.be/Jfgr3Ewsw8s.
- Read about HTML5’s Canvas transformation API at https://developer.mozilla.org/en-US/docs/Canvas_tutorial/Transformations.
In class
Continue the problem from last lecture. If you have 1x, add the ability to pan around the canvas. If you have 2x, add the ability to scale, either with two fingers pinching and zooming on a real device, or with a SeekBar overlayed on your canvas.