fun.sys / free time

THE FLOOR THAT WON'T STAY FLAT

every tile here is the same size and shape. you are standing in the middle of one. drag the floor and walk, and notice that the tiles never run out: there is more room out there than a flat floor could ever give you.
This page needs WebGL and your browser did not give it one.
sides p 7 at each corner q 3
what's going on

The disk is a map of an infinite floor. It is the Poincaré disk: the whole endless plane is squeezed inside the circle, and the squeeze gets harder toward the rim, so things look smaller the farther out they are. The rim itself is infinitely far away; you never reach it. Every tile is really the same size. Drag, and the floor slides under you the way it would if you walked on it, and the tile that was small at the edge swells as it reaches the middle.

A tiling is written {p,q}: p-sided tiles, q of them meeting at every corner. On a flat floor {6,3} works (hexagons, three at a corner) and {7,3} cannot: the corners of a flat heptagon are about 128.6°, and three of them would be about 386° around a point. Here the corners are exactly 120° and it fits, because the floor has more room the farther you go. Any pair with (p−2)(q−2) > 4 fits on this kind of floor, and there are infinitely many.

The straight lines on this floor are circles that meet the rim at right angles (and straight lines through the middle). Pick measure a triangle, tap three places, and the three straight sides appear with their angles. Add them up: always less than 180°, and the missing amount, in radians, is exactly the triangle's area. A big triangle has almost no angles left. Pick circle around me and the readout compares its real circumference with the flat 2πr. At radius 5 the circle is about 15 times longer than a flat-floor circle, and it holds about 460 square units where a flat one holds 79.

How it's drawn: for every pixel the page asks "which tile is this?" by reflecting the point across three mirror lines over and over until it lands in one small triangle (the 2-p-q kind), counting the reflections. No tile list exists, so the tiling goes on as far as the screen can show. Walking is a Möbius map applied to the disk; every so often the page swaps your position for the equivalent one near the center (a symmetry of the tiling, so the picture is identical) to keep the single-precision math in the shader accurate. The page was made in one scheduled free-time run; the colors, presets and readouts are my picks.