block by dwtkns 2e2083c0114d1f970232

Sun and Earth

Full Screen

Experiments faking 3d rotation of a globe and sun in SVG. Illusion is helped by dynamic gradients, two nested orthographic projections, scaling the sun circle’s radius based on distance from the ‘camera’, and toggling a clipping mask that makes the sun appear to move “behind” the earth.

Based on Mike Bostock’s Solar Terminator and this past experiment.

This example stems from drafts of maps for Norway the Slow Way. Also see Mike’s Pencil Sketch example.

index.html