Dandelions
Clocks on tall stalks and yellow flowers on short ones, in two clumps at the sides, swaying in a breeze that rises and falls. Now and then a gust takes a seed and it drifts off over the page pappus-up, round your text. Click and you blow: the breath reaches the nearest clock and strips it, and in time a bald one opens a fresh head.
Needs: None. A 2D canvas.
Customize
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| clocks | number | 4 | Seed heads, on tall stalks. |
| flowers | number | 2 | Yellow flowers, on short stalks. |
| cell | number | 2 | Size of one dither cell in px. Everything scales with it. |
| wind | number | 1 | The breeze: 0 still air, 1 an afternoon breeze, 2 a windy day. |
| speed | number | 1 | Time scale. 0 holds the moment. |
| interactive | boolean | true | A click blows seeds off the nearest clock; a quick hand stirs the air. Read on the window. |
| avoid | string | – | CSS selector for the page's text: the seeds drift round it. |
| seed | number | 4 | Picks where the plants stand and which way the wind blows. |
| opacity | number | 1 | Opacity of the whole scene. |
| dpr | number | null | Device pixel ratio to render at. Math.min(devicePixelRatio, 2) when unset. |
| className | string | – | Class on the root element, which fills its parent. |
| style | CSSProperties | – | Style on the root element. Theme it through the --mlui-* variables. |