Pixel Saturn
A pixel-art Saturn in 3D you can drag to spin.
Features
- •A real 3D scene in pixels — Every pixel is worked out from a sphere and a tilted ring plane under one sun, so the rings pass in front of the planet and behind it, with dithered pixel-art shading.
- •Rings like the real ones — The faint C ring, the bright B ring, the Cassini Division, the A ring with the Encke gap and the thin F ring, orbiting faster on the inside with drifting spokes and glints. The thin parts are see-through.
- •Shadows and ringshine — The rings cast striped shadows on the planet, the planet's shadow falls across the rings, and light bouncing off the rings warms the night side. Moving light sweeps the shadows round.
- •A living planet — Each latitude spins at its own speed so the bands slide past each other, the hexagon storm turns in a small polar cap, a white storm drifts, and three moons orbit.
- •Builds in, spins on drag — Saturn appears pixel by pixel, the rings sweep round and the moons arrive. Drag sideways to spin it with momentum and up or down to tilt it, with a mouse or a finger.
- •Your colours, one file — Pick the planet and ring colours and every shade follows. No dependencies; it pauses offscreen and holds still with reduced motion.
Props API Reference
12 configurable props| Prop | Type | Default | Description |
|---|---|---|---|
| pixelSize | number | 3 | Size of one art pixel in CSS px (2–6). |
| speed | number | 1 | Speed of the spin, the rings, the moons and the moving light; 0 holds everything still. |
| tilt | number | 0.34 | How open the rings look: 0.12 nearly edge-on, 0.6 seen from well above. |
| ringAngle | number | -18 | Rotation of the rings on screen, in degrees. |
| size | number | 0.9 | Size of Saturn in the frame (0.5–1.2); it fills its parent. |
| lightAngle / movingLight | number / boolean | 205 / false | Where the sunlight comes from in degrees (0 right, 90 below, 180 left, 270 above), and whether it slowly circles. |
| planetColor / ringColor | string | "#C39C5F" / "#BDAA84" | Main colours of the planet and the rings; the other bands, the pole and the storm follow the planet colour. |
| background | string | "#06070D" | Colour of space. |
| showMoons / showStars | boolean | true | Titan, Rhea and Enceladus orbiting, and twinkling stars with the odd shooting star. |
| intro / interactive | boolean | true | Build in pixel by pixel when it first appears, and drag to spin and tilt. |
| label | string | "Saturn in pixel art…" | Accessible description. |
| className / style | string / CSSProperties | undefined | On the wrapper; it fills its parent. |