Intro To JavaScript: Drawing & Animation


I am learning new things. Thank you, Khan Academy





From THAT:

  


    ASSIGNMENT
  1. Decide what side of the canvas you want the star to start from, the top, bottom, left or right, and position your star there.

  2. Decide what direction you want the star to move in. Change the variables inside draw so that the star moves the way you wanted.

  3. Add another star or other shape, and animate it going in a different direction.

  4. Bonus: Change the star into a different shape, or have it shoot out of a cannon.

  5. Bonus: Add a backdrop, like a starry night or skyscrapers.


To THIS:









*REFRESH MAY BE REQUIRED TO VIEW ANIMATION, I HAVEN'T LEARNED LOOPING QUITE YET*

Recent: