The engine draws each plant as polygons. This replay draws the same polygons in stages: paper, stems or branches, leaves, flowers, then the two pixel filters and the border. The last frame is the one-shot painting. Tap a stage to go to it.
The PNG is the 600 px painting on its paper, as upstream saves it. Its text fields name Lingdong Huang and the seed.
The numbers that genParams() picked for this seed. A woody plant uses the branch group, a herbal plant the stem group.
Nonflowers is by Lingdong Huang (2018, MIT). It paints plants that do not exist in the manner of Gongbi, the fine-line Chinese flower painting. Every shape is a polygon from a seeded random source and Perlin noise, and two filters work on the pixels. No image or library goes in. This page runs the upstream file without a change.
A plant is woody or herbal, with even odds. A woody plant grows fractal branches; leaves and flowers go at random points on them. A herbal plant grows a few stems from one root, each with a sheath and shoots that end in a flower. Each petal is a leaf() with no veins, bent by an open curve and shaded by a colour curve.
The edge of the painting is a squircle: the border keeps pixels inside this radius, with angle θ and a = 3.
The petal colour runs along the petal through this sigmoid, with the two colours of the summary at its ends.
The page wrapper is by davesgames.io: a worker shim that keeps the engine state local, the history, the summary, the herbarium and the screensaver. A seed here paints the same plant as the upstream page with ?seed= and that seed: the same random numbers, shapes and colours. This page draws on the CPU path of the canvas, so one seed always gives the same pixels in one browser. The upstream page lets Chrome pick the GPU or the CPU path, so the soft edges of the shapes can differ a little (4% of the pixels for seed 1 in our Chrome check).