Plate

Deterministic project marks

Platefigure

Open the tool README.md
Kind
Artifacts
Status
Released
Reading
2 min
120.53.520.53.5Unmarked poles 0.25. Lengths in cells.

The generator behind the project marks on this site. We draw each mark's shape by hand, and a seed taken from the project's name picks its weights and counts.

Plate draws the marks for the projects on this site. Each mark is meant to show how its project works, not what it is called. Labloop's mark, for example, is a thin loop that ends in two heavy terminals, because a Labloop search goes round many times and a result leaves it only through one gate. All the marks keep to the same few rules: one colour, shapes placed on a grid of six cells to the em, and no background of their own.

Most of a mark is decided before the seed comes in. We draw each project's shape by hand, in code, and the seed can't change it. What the seed can change is a small set of choices on the grid the marks are drawn on. By default the seed is the project's name: we lowercase it, hash it with 32-bit FNV-1a, and use the hash to start a mulberry32 random number generator. For Plate's own mark there are two such choices, the thickness of the heavy block (2 or 2.5 cells) and the number of times it is struck (once or twice). The name "plate" gives a 2-cell block struck twice. If we had called the project "plates", the block would be 2.5 cells thick and still struck twice.

The name has two meanings and we wanted both. A plate is what you print from, and it is also the word for a figure in a paper. Plate's own mark uses the first: a heavy block, with thinner impressions of its corner struck inside it.

On the site the marks are SVG drawn in currentColor, so a mark takes the text colour of whatever page it is placed in. GitHub and Hugging Face can't do that, so for them Plate writes PNG files with the colours baked in, read from the site's stylesheet so the two can't drift apart. Every mark also has a coarse version for small sizes. Below 28 pixels the thin parts are drawn a full cell wide and the counts drop to the fewest that still show the mechanism.

Plate draws only the marks. The text, the cards and the layout around them come from the site, and adding a mark means writing one module for its shape and listing what the seed may choose.