dendrite

The very small, drawn as dots.

Neurons firing down their axons, a cell pinching itself in two, a snowflake throwing branches as it grows, grains knocked about by molecules, a strand of DNA winding past. No dependencies, one script.

Flags

The same neuron four ways. They stack.

Use it

One script, then a canvas. Height is the size; a wider canvas gives a net or a dish more room.

<script src="https://cdn.jsdelivr.net/gh/TonkaTuff/dendrite@v0.1.0/dist/dendrite.min.js"></script>
<canvas class="micro" width="300" height="200" data-micro-body="neuron"></canvas>
attributevaluewhat it does
data-micro-bodynameany name above
data-micro-formsingle · purkinje · net · colony · snowflake · frost · dendrite · drop · forkone neuron, a Purkinje cell or a net of them; one cell or a dish; which crystal; a drop of ink instead of grains; a replication fork
data-micro-countnumberneurons in a net (7), cells in a colony (22)
data-micro-cyclenumberseconds for a cell to divide (10), a crystal to grow (24), an ink drop to spread (14)
data-micro-seeds / -armsnumberfrost: seeds along the sill (9); a mineral dendrite's arms (7)
data-micro-n / -grains / -heatnumberbrownian: the small particles at a 64px height (600), the big grains (5), how hard they jitter (1)
data-micro-reach / -pitch / -tiltnumberhelix: half its width (0.11), one turn's length (0.2), both as fractions of the height; how far it leans (0.35)
data-micro-temponumberhow fast it all happens (1)
data-micro-ink / -lite / -ground1monochrome dots that follow the page theme · half the dots · a dark slide behind
data-micro-glow0no soft glow, just the dots on a clear canvas