Loading…
Loading the plan…
Space plays or pauses; , and . step one frame. The bar shows each stage's dimension over the loop; drag along it to scrub.
Cube and faces
View
Export this frame
How this works
A unit cube in k dimensions is rotated by a small rotation every frame, sixty frames a second, and drawn as its orthographic shadow on the first two axes, with the third axis as depth. The cube never changes shape; only its orientation does.
At first only the first two axes turn, and the square stands edge-on, so the shadow is a spinning line. It tilts into a square, and then, on a schedule that gives the low dimensions more time, each further axis joins the rotation in turn, blended in gradually, until all k are turning.
Then the cube folds back down. For each fold an optimizer nudges the next few small rotations so that one of the cube's edges comes to point straight along the axis that is leaving, just as that axis stops moving: the shadow lands exactly on a cube of one dimension fewer. It tries ten fold durations within 10% of the schedule, from slightly different starts, and keeps the one that strays least from the incoming motion. The last square tilts back into a line, and the line turns, in the same direction, back to where the loop began, so the loop repeats seamlessly.
Translucent faces show every square face of the cube in one colour and opacity, so overlapping layers add up, with the cube's edges drawn on top. The default opacity is 1/1.25k; with many coincident layers that saturates, so lower it to see the layers. Opaque faces use one light above and to the right of the viewer, and each face printed with a dimension numeral. A face keeps its numeral while it can be seen and takes the number of its next appearance only while it is hidden, so numerals never change in view. A line has no face to print 1 on, and an older numeral can stay on a face for several stages until that face is hidden.
Dragging turns the camera around the 3-D shadow, not the cube in k dimensions. The numerals' changes were planned for the default camera, which looks straight down the depth axis, so they are hidden while the view is turned; Reset view brings them back.
The page replays precomputed trajectories for 3 to 9 dimensions. Each frame uses a k × 3 projection matrix generated by the shape_rotation pipeline with seed 1 and its default settings.
Every frame is also available to scripts and agents: see the API description.