SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 163 | Next

Richard Wagner

"Professional iPhone and iPod touch Programming: Building Applications for Mobile Safari"

If you are changing any context settings and need to reset them for each new frame,
you need to use the save() and restore() methods.
Chapter 6: Advanced Programming Topics: Canvas and Video
145
The following HTML page shows a simple animation program in which a circle moves diagonally
from the top left to the bottom right part of the canvas:
???http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd???>


Animate
user-scalable=0;???>



top:0px???/>


The init() function is called when the document is loaded, which sets off a timer to call animate()
every 100 milliseconds.


Pages:
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175