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.
Jessica introduces the draw() function, and how to get things to move with code.
Make the sun get bigger and BIGGER!
Pamela explains how to use mouseX and mouseY to make cool interactive programs.
Jessica shares tips on how to increment variables with less code, using the increment operators.
Pamela shows how to use the ++ operator to add one to a variable.
Animate clouds moving away from a growing sun!
<p>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 ...