All examples · Experiments · As Markdown, for AIs

Latte

What this example shows

A cup of coffee with latte art and a spoon that stirs it. The foam stretches into spirals, keeps swirling after the spoon stops and slowly mixes into the coffee until it is all one creamy brown. The surface sinks in the middle and climbs the porcelain as it turns, and steam rises off the top.

Underneath is a 160 × 160 fluid simulated on the CPU, with MacCormack advection for the foam, whose pressure raises and sinks the surface's mesh. The porcelain and the steel are glazed materials lit per pixel. Drag to stir; left alone, the spoon stirs by itself. R for fresh latte art (a heart, a tulip, plain foam) and V to see the flow in colours or the surface's mesh.

Starting
Starting
—