Sky Color and Moon Phase Simulation
Loading the math board and drawing, please wait…
In collections
Solar System Mysteries
This GeoGebra applet simulates the changes in sky color and moon phases using geometric constructions and parametric equations. By utilizing geometric objects such as circles, ellipses, circular sectors, and polygons, combined with conditional statements and sequences, it dynamically demonstrates the relationship between the Earth, the Moon's orbit, and the angle of sunlight. Controlled by a time slider, the applet allows users to explore how the sky transitions through different colors during various times of day, from deep blue at noon to warm oranges and reds near sunrise and sunset, and finally to dark night tones. The moon phase simulation illustrates the complete lunar cycle, showing how the illuminated portion of the Moon visible from Earth changes as the Moon orbits our planet. Students can manipulate the time variable to observe the cyclical nature of both phenomena simultaneously. This interactive visualization provides a powerful tool for understanding two fundamental astronomical concepts that are often taught separately. The geometric constructions reveal the underlying mathematical structure of celestial mechanics, connecting abstract concepts in geometry and trigonometry to observable natural phenomena. The parametric equations used to model the Moon's orbit and the changing illumination angles offer a concrete example of how mathematical functions describe real-world processes. Teachers can use this applet to demonstrate orbital mechanics, the causes of seasons in terms of light angles, and the predictable patterns governing lunar cycles. The integrated approach of combining sky color transitions with moon phase changes within a single simulation helps students develop a more holistic understanding of Earth's relationship with the Sun and Moon. The step-by-step geometric construction process also serves as a valuable lesson in mathematical modeling, showing how complex natural phenomena can be broken down into simpler geometric components and reconstructed dynamically.
GeoGebra Commands & Parameters
Circle(Ecenter, 0.8) → earthcircCircle(Ecenter, 1.4) → handcoutPoint(handcout) → TSegment(T, Ecenter) → hourhand1Intersect(earthcirc, hourhand1) → S,Circle((-19, 0), 4) → moonorbitPoint(moonorbit) → P1Mod((π * (2.5 - day / 15)), (2 * π)) → alphaEllipse((x(A), y(A) + f), (x(A), y(A) - f), r) → eCircleSector(A, E, F) → semilCircleSector(A, F, E) → semirIf(0 < alpha ≤ π / 4, 2, If[π / 4 < alpha ≤ π / 2, 1, If[π / 2 < alpha ≤ (3 * π / 4), 8, If[(3 * π / 4) < alpha ≤ π, 7, If[π < alpha ≤ (5 * π / 4), 6, If[(5 * π / 4) < alpha ≤ (3 * π / 2), 5, If[(3 * π / 2) < alpha ≤ (7 * π / 4), 4, 3]]]]]]) → moonsecPolygon((-10, 0), (10, 0), (10, 10), (-10, 10)) → sky, a, b, c, dPolygon((-10, -15), (10, -15), (10, 1.5), (-10, 1.5)) → 大地, g, h, i, jIf(5 ≤ moonsec ≤ 8, true, false) → semilwIf(moonsec ≤ 2 ∨ moonsec ≥ 7, false, true) → ellwIf(1 ≤ moonsec ≤ 4, true, false) → semirwPolygon((-26.93778, -15.12443), (-9.93778, -15.12443), (-9.93778, 10.87557), (-26.93778, 10.87557)) → leftsky, k, l, m, nIf(time < 12, "am", "pm") → ampmMod(time, 12.0001) → time12Sequence(Vector[(-11.5, i), (-13, i)], i, -4, 4) → list1CircleSector(P1, (x(P1), y(P1) - 0.5), (x(P1), y(P1) + 0.5)) → smallmoonrCircleSector(P1, (x(P1), y(P1) + 0.5), (x(P1), y(P1) - 0.5)) → smallmoonlCircle(Ecenter, 1) → handcinIntersect(handcin, hourhand1) → N,Segment(T, N) → hourhandMod(floor(time), 12.001) → thourIf(tmin < 10, "0", "") → zerostrCircleSector(Ecenter, (-19, 0.8), (-19, -0.8)) → earthshadowOrthogonalLine(S, hourhand1) → pPoint(p) → OPoint(p) → POrthogonalLine(P, p) → qOrthogonalLine(O, p) → sPoint(q) → QOrthogonalLine(Q, q) → tPolygon((-10.45685, -16.18435), (-9.82044, -16.18435), (-9.82044, 11), (-10.45685, 11)) → divider, a_1, b_1, c_1, d_1Intersect(s, t) → RPolygon(P, Q, R, O) → poly1, p_1, q_1, r_1, oPolygon((-10.45685, -16.18435), (10.82044, -16.18435), (10.82044, 11), (-10.45685, 11)) → skybackgrnd, e_1, f_1, g_1, h_1If(time < 5, 0, 5 ≤ time ≤ 7, (0.5 * time) - 2.5, 7 < time < 17, 1, 17 < time ≤ 19, (-0.5 * time) + 9.5, 0) → bluetrans
AI Drawing Prompt Reference
Draw a scene simulating sky color and moon phases. In the center, place a circle representing Earth, surrounded by concentric rings and a hand-like segment from the center to the outer ring, like a clock hand. To the left, draw a large circular orbit with a point on it representing the Moon, flanked by two semicircles showing its illuminated and dark parts, whose proportions change with the Moon's position. The background is split into two polygons: the upper sky polygon changes color from deep blue at noon to orange and red near sunrise/sunset, then dark at night; the lower ground polygon is darker. On the left side of the sky, add a darker region for night. Include a horizontal divider between sky and ground, and a sector near Earth representing its shadow. A time slider controls the cycle of day and night and the lunar phases.
The prompt above was compiled from the original drawing commands and is for reference only.