solar system clock
An accurate clock visualized through models of the Sun, Earth, and Moon. In my p5.js code, I calculate the number of days in a year to determine the Earth's position relative to one full orbit around the Sun. Similarly, the Earth model completes a full rotation every 24 hours. However, the Moon's movement is not accurately represented in this model. I used spheres from the WebGL library and added textures to create the celestial bodies.
View Project