tag(id)
Encode an integer id as a CSS hex color string for use with fill().
id 0 is reserved — decodes as background / miss.
| Parameter | Type | Default | Description |
|---|---|---|---|
id |
number |
Integer in [1, 16_777_215]. |
Returns string CSS hex string, e.g. '#010000' for id 1.