If you're seeing this message, it means we're having trouble loading external resources for Khan Academy.
If you're behind a web filter, please make sure that the domains
*.kastatic.org and *.kasandbox.org are unblocked.
Learn how to animate your drawings.
Pamela shows how to program animations, using the draw() function.
Make the sun get bigger and BIGGER!
Pamela shares tips on how to change variables (like incrementing or multiplying them) with less code.
Pamela shows how to use the ++ operator to add one to a variable.
Animate clouds moving away from a growing sun!
Now that you've learnt the basics of animation with variables, make a shooting star! We've started off this program with just a star positioned using 2 variables, and it's up to you to decide how to animate it. Here are the steps we ...