This visualization shows the Moon's phases as seen from Earth. You can use the slider to adjust the Moon's position in its orbit around the Earth. Use your mouse/trackpad to rotate the view.
Check the "Geocentric View" box to switch to a view from the center of the Earth, pointing directly at the Moon.
Note the objects are not to scale and do not cast shadows.
© 2023 Derek C. Richardson under the MIT license. The full source code is hosted on GitHub. This project was developed with the assistance of ChatGPT, an AI language model developed by OpenAI. ChatGPT provided essential guidance and code suggestions throughout the development process. This project uses the three.js JavaScript 3D Library with OrbitControls.js add-on under the MIT license. The textures for the Earth, Moon, and Sun are from https://www.solarsystemscope.com/textures/ under the Attribution 4.0 International (CC BY 4.0) license.
For more information about this project, including some details of the ChatGPT conversation, visit https://dcrastro.github.io/phases/.