Project Description
Background
Have you ever wondered why the days get longer after the Winter months? Or why do we move our clocks ahead one hour in the Spring, and then back one hour in the Fall? It all has to do with the Earth’s position in space! In this project, you’ll create an animation that brings to life the journey of planet Earth as it orbits around the sun. Along the way, you’ll gain insight into how this affects the amount of daylight we experience, and uncover the fascinating history behind the origins of Daylight Savings Time!
Your Task
You will create an animation that has Earth orbiting around the Sun! You can upload your own images for the Sun and Earth or create your own graphics from scratch using JavaScript. By using timers and layers, you’ll create a program that moves the Earth across the canvas, both in front and behind the Sun. Run the demo program to view an example.