Open Technical Blog
Thursday, 13 September 2012
HTML5 Canvas - Animation
This script shows how to perform simple animations with
Canvas
in HTML5. The following techniques are adopted:
Canvas for graphics.
Draw circles.
Use
setInterval()
to set up a timer trigger.
Output
When the file is viewed in a browser such as Chrome or Firefox, it appears as below. Note that the black ball is bouncing on the canvas frame.
Source Code
This is a HTML5 Canvas Experiment.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment