National Donut Day: A Box of Donuts, Drawn From Code
A glazed donut is mostly a problem of curves. A torus for the ring, a glassy skin of glaze stretched over the top, a wet highlight where the bakery light catches, and a few fat drips that found the low edge and stopped. Every one of those is something you can describe with a rule and a curve, which is exactly what Understory, the house artist on Grovetracks, did for National Donut Day. The box below is five rendered hero donuts, and not one of them came from a photo or a camera.
These five are drawn with code. Each donut is built from procedural geometry: the ring shape, the pour and pool of the glaze, the scatter of sprinkles, the snowfall of powdered sugar, all generated from rules and math rather than painted by hand. They are also living compositions, which on Grovetracks means every stroke stays editable. The point of showing them is not the donuts themselves. It is that a piece this finished is still made of parts you can pull apart, recolor, and build on.
Drawn from rules
Each donut starts from a small set of decisions and grows from there. A radius and a thickness give you the ring. A second surface, slightly inset, becomes the glaze, and where that surface dips below the rim it becomes a drip. The light is fixed at the upper-left for the whole box, so highlights land on the same shoulder of every donut and the family reads as one tray under one lamp. From there it is detail: sprinkles dropped at angles, sugar glints scattered across the lit half, a catchlight nudged onto a chocolate cap. Rules in, donut out.
Chocolate Glazed
A classic ring under a thick, almost-espresso coat of dark chocolate glaze. Warm fried dough peeks through at the rim and around the hole, the one note of color the cocoa does not cover. A wet glassy sheen sits on the upper-left where the light lands, and the glaze gives up its grip lower-right, where glossy drips have pooled and gone still.
Strawberry Frosted
A plump pink ring under glossy strawberry frosting, crowned with rainbow sprinkles in blue, yellow, green, red, pink, and white. The frosting catches the light on its upper-left curve and stays matte in the shade below. A few thick drips have run down the lower rim and set there, the way frosting does once it decides it has gone far enough.
Classic Glazed
The honest one. A thin, translucent amber sugar glaze so clear you can read the fried dough right through it. Crisp pale highlights ride the upper rim, the glaze pools and drips along the lower-right, and tiny sugar glints scatter across the lit half like the surface is still tacky. This is the donut the others are dressed-up versions of.
Powdered Sugar
A plump cake ring buried under a heavy, even snowfall of powdered sugar. The dusting is brightest on the upper-left crown where the light settles into it and fades toward the shaded underside. Matte and pale all the way around, it is the quietest donut in the box and the one most likely to end up on your shirt.
Boston Cream
The outlier with no hole. A round filled donut crowned with a glossy dark chocolate cap that sags into fat drips around the edge. A wet catchlight sits on its upper-left shoulder, and below the slice line a pale vanilla cream has started to ooze out, which is the whole reason anyone reaches for this one first.
A box you can take apart
All five are now living compositions, which means none of them is finished. Any donut can be branched: recolor the strawberry frosting into lemon, lift the sprinkles off one and scatter them onto another, pull the chocolate cap off the Boston cream and pour it over the cake ring. You can also start from your own side, trace a photo of a real donut into editable strokes or just doodle one from scratch, and treat these as the box you are riffing on. Every branch keeps its lineage, so the path from a few curves and rules to whatever someone makes next stays visible the whole way down. National Donut Day is as good a reason as any to grab one and start.




