Every frog is built from a few hundred random choices, and the name decides all of them.
Name and seed
A typed name is hashed into the seed of the random number generator, so the same name always draws
the same frog. Without a name, one is invented first: a pseudo-Latin genus and species, the way
LingDong's fishdraw names its fish. The end of the genus tells the family, as it often does for real
frogs: -bufo for toads, -hyla for tree frogs, -bates for poison dart frogs.
Building a frog
Each family sets ranges for the body: its outline, the legs and webbed toes, the eyes and pupils,
and a skin pattern such as bands, a net of fine lines or warts. Shapes are drawn front to back and
each one hides what lies behind it, so every line on the page is one a pen can draw.
Shading
Shadow is a crescent: the part of each shape not covered by a copy of itself shifted toward the
light, filled with short strokes that start at staggered points. The idea is from fishdraw.
Lettering
The name under the frog is set in a Hershey font, single-stroke letters made for plotters in the
1960s, so the plotter writes it rather than filling outlines.
Where it runs
The generator is the Python from my pen plotter project, unchanged. Here it runs in your browser via
Pyodide, with numpy and shapely, so the first frog takes a few seconds while Python loads. The SVG
download plots on any pen plotter.
Source on GitHub