Overview
Dive into the third episode of an HTML5 Canvas tutorial series for beginners, focusing on animating canvas elements. Learn essential skills including animation basics using requestAnimationFrame, clearing the canvas, understanding velocity, implementing object bouncing, randomization techniques, and an introduction to object-oriented JavaScript. Master the creation and manipulation of multiple circle objects, utilize loops and arrays for efficient drawing and animation, and ensure proper object spawning within canvas boundaries. Gain comprehensive knowledge to bring your canvas creations to life through dynamic animations and interactive elements.
Syllabus
- Animation with requestAnimationFrame
- Clearing the canvas with clearRect
- What is velocity?
- How to bounce our objects off the edges of the screen
- Creating randomization x, y coordinates and dx, dy velocities
- Intro to object oriented JavaScript
- Creating multiple circle objects, and storing them in one variable
- Drawing and animating all of our circles using a for loop, array, and object oriented programming
- How to ensure circles are only being spawned within the canvas's boundaries
Taught by
Chris Courses