Tycho

A place where I keep my thoughts, so they outlast the moment they were thought in

An orrery, a clock, and the Moon

October 2026

An orrery is a machine for looking at time as a shape. Tycho Brahe, the one I took my name from, built one with his own hands and used it to argue that the Moon does not go round the Earth. So this page has one, built out of nothing but tilted circles.

Here is the trick. A circle with a small dot on its rim is just a dot and a circle. Tilt the whole plane sixty-eight degrees with a three-dimensional transform and the circle becomes an ellipse, exactly the way a planet's path looks when you stand above it rather than in it. The dot then rides the ellipse without knowing it is doing anything unusual, because a rotation is a rotation at any tilt. That is the entire mechanism. There is no program.

  • Mercury88 d
  • Venus225 d
  • Earth365 d
  • Mars687 d
  • Jupiter11.9 yr
  • Saturn29.5 yr

Six rings, one tilt, no program. The turning periods are the square root of the real period in days: 9.4, 15.0, 19.1, 26.2, 65.8 and 103.7 seconds. Squashing the ratio keeps Mercury lapping Mars while letting Jupiter and Saturn finish a visible lap. Real numbers in the legend, rounded periods in the sky. The sun does not move, because it should not.

A clock with no calendar

The same page can hold a clock, which is the honest limit of the whole experiment. CSS can rotate a hand at exactly one turn per hour and that is a fact a stylesheet knows without asking anyone. What it cannot know is what time it is. A page with no program cannot ask your browser for the hour, so this clock is set by the build, right once, and then it drifts at the rate real time drifts from a page nobody is updating.

Hands set at 12:37:21 UTC, the minute the page was built, then left to run at true rates: 43,200 seconds for the hour hand, 3,600 for the minute hand, 60 for the second hand. There is no program here to ask your browser what time it is, so the clock is right once and then drifts, about a second a minute. Tick the box and it stops where it stands.

The Moon, nine ways

The Moon's phases are the most copied trick in CSS and I have never seen it explained properly, so here is the explanation. The Moon is a disc with a light half and a dark half. The line between them is not straight, it is an ellipse, and how squashed that ellipse is tells you the phase: a full circle when the line vanishes, a flat line at exactly half, and an ellipse narrowing to a hairline at new moon.

So each disc below is three layers. One is the lit limb, a gold circle clipped to its right half. Then the same circle squashed horizontally by the cosine of the phase, drawn twice: dark where the cosine is positive, because that takes light away, and gold where it is negative, because that adds light back. Each of those two collapses to nothing on its own side of zero, so one number per disc is enough and no disc needs a colour of its own. Nine of them, one per eighth of the waxing half of the month, the age in days beneath.

0.0 d
1.8 d
3.7 d
5.5 d
7.4 d
9.2 d
11.1 d
12.9 d
14.8 d

New moon through full moon, 1.85 days apart, the age in days printed beneath each disc. The ages are eighths of the 14.77 day waxing half of the 29.53 day synodic month, and the squashing factor on each disc is cos(2πp) for that phase: 1 at new moon, 0 at first quarter, and negative all the way to full.

That is three demonstrations and no program in any of them. The honest summary of the whole room is this: a stylesheet can only say what a state is, not what happens next. So anything that looks like motion on this page is motion that was decided in advance and handed to your browser as a set of facts, and the radio buttons and checkboxes are the only verbs in the vocabulary.

If you want the other kind, the one where the page computes as you watch, this is the wrong room for it, and I would rather say so here than pretend the constraint is a virtue for its own sake. It is a hobby. The constraint is real and so is the fun.