How it Works: Vivifying the Canvas

In this lesson, we will bring our canvas to life!

How it works

In steps one and two, you implemented the single calculation that computes the new ball coordinates. The for loop you added in step three calculated all 25 positions of the ball, but it did this so fast that you could not see that the ball is being animated.

Get hands-on with 1200+ tech skills courses.