The Sun always lights half of the Moon. As the Moon circles Earth we look at that lit half from changing angles: from behind (new), from the side (quarter) or from the front (full). Move the Moon, change the time of day and hemisphere, and watch the sky.
Drag the Moon to the side of Earth facing away from the Sun: that is full Moon, because we look at its lit face. Switch to the southern hemisphere: the same Moon appears the other way round. Set the time to 18:00 and step through the month: the Moon rises later each evening. A first-quarter Moon sets around midnight; a last-quarter Moon rises around midnight. Export the phase table to get lit share and rise and set times for every day of the month. Geometry of the Sun-Earth-Moon system. The Moon's elongation e (angle Sun-Earth-Moon) grows by 360° every synodic month of 29.530588 days. The lit fraction of the disc is (1 − cos e)/2: 0 at new Moon, 50% at the quarters and 100% at full Moon. The terminator is drawn as an ellipse of half-width R·|cos e|. A waxing Moon is lit on the right from the northern hemisphere and on the left from the southern, and the reverse when waning. For rise and set times the Sun and Moon are taken to lie on the celestial equator and the observer on the equator at an equinox: the Moon crosses the meridian at 12 h + 24 h × e/360°, rises six hours before that and sets six hours after, and its altitude is asin(cos H) for hour angle H (Meeus, Astronomical Algorithms, ch. 15 and 49, for the idea). Simplified: circular orbit in the Sun's plane (the real one is tilted about 5°, which is why eclipses are rare), no latitude or season, no libration, and the Moon drawn much larger than true scale. The sweep varies the Moon's age and records the lit share, moonrise and moonset times.