HomeLabHire Me
ml-ui10 components

Get started

IntroductionInstallation

UI

Dots

Dot CalendarNewDot CodeNew

Dither

Dither GlobeNew

Text

Ink PrintNew

Data viz

Dither

Dither MapNew

Media

Dots

Dot WaveformNew

AI

Diffusion ImageNew

Backgrounds

Koi PondNewMarigoldsNewWhite BlossomNew

ml-ui / Backgrounds

Marigolds

Marigolds rise from every edge toward an open patch of sky, drawn in type or dither, swaying in a slow breeze. Point and they part for you, brush through and they swing; click to shake a few petals loose.

Needs: None. A 2D canvas.

Customize

look
sky

Props

PropTypeDefaultDescription
flowersnumber34How many flowers. Leafy stems fill in around them.
look"ascii" | "dither""dither"Glyphs, or a dither of small square pixels.
cellnumber3Size of one cell in px. Leave it unset for 3 with dither and 10 with ascii.
colorstring"#f07b16"The petals' colour; deeper and lighter shades are made from it.
leafstring"#4f8a2e"The leaves' and stems' colour.
sky"none" | "drawn" | "natural""none"The sky through the gap: your page with faint cloud wisps, a sky drawn in the same type or dither, or a soft painted sky with drifting cumulus.
skyColorstring"#5d9fd9"The sky's blue, for drawn and natural skies.
breezenumber1How hard the breeze blows. 0 is still air.
speednumber1Time scale. 0 holds the moment.
interactivebooleantrueLean away from the cursor, swing when brushed, shed petals on click. Read on the window, so content above keeps its clicks.
seednumber7Picks where each flower grows.
opacitynumber1Opacity of the whole field.
dprnumbernullDevice pixel ratio to render at. Math.min(devicePixelRatio, 2) when unset.
classNamestring–Class on the root element, which fills its parent.
styleCSSProperties–Style on the root element. Theme it through the --mlui-* variables.
← Koi PondWhite Blossom →