Login or create an account and code along whilst you watch this lesson.
We are going to create a screensaver by drawing circles in random positions around the canvas. To do this we will use code from an existing library named random. To use the code from this library we first need to import it into our own programs. So get your thinking cap on and start watching the video. Be sure to code along as you watch!
1 | Introduction to Variables | 11:32 | ||
2 | Animation the Hard Way | 12:12 | ||
3 | Animation Loop | 9:36 | ||
4 | Respawning with if Statements | 7:21 | ||
5 | Sunrise and Sunset | 22:25 | ||
6 | mouseX and mouseY Variables | 5:38 | ||
7 | if, elif, and else | 10:18 | ||
8 | Random Screensaver | 12:39 | ||
9 | Bouncing Ball Animation | 19:31 | ||
10 | Two Bouncing Balls | 9:43 |