Tessellate Me
Draw a cat and the screen fills with interlocking cats.
Draw a closed outline in the box, or press Example.
Draw something with an outline: say, a cat with eyes and whiskers. When you stop, the outline bends into the nearest shape that tiles the plane, your lines ride along into every copy, and the screen fills with interlocking cats. Everything runs in your tab.
The science is not new. Fitting a tile to a drawing is called Escherization, and the solver here is Nagata and Imahori’s MIT-licensed EscherTiling. Others put it in a browser first. What this one adds is your strokes, carried into every copy, on freehand doodles that were never drawn to be tiles.
The tile was right and the picture was wrong
A tile can follow your outline closely, and the tiling still reads as wavy stripes and blobs. With the doodle’s own strokes drawn in every copy, the same tiling reads as cats.
Of the 333 doodles a Quick, Draw! classifier recognizes as they were drawn, it still recognizes 224 (67.3%) as a tile carrying its strokes, and 72 (21.6%) as an outline alone. Both are measured, by the classifier only.
After you stop drawing
The app waits about 2.5 s in case you are still drawing (“Tile it” goes sooner). Then it closes your doodle, because doodles are open strokes and a tile needs one silhouette. A C++ solver, compiled to WebAssembly and running in four Web Workers, searches all 9 general isohedral families for the nearest tile. Mean value coordinates then map every stroke point from the silhouette into the tile. That map can fold, and a family whose map folds gives way to the next best. Canvas2D draws the result with one transform per copy, and reflected copies mirror their strokes for free.