hd-color-wheel
on changeA light’s colour on a wheel (hue round the edge, saturation from the white middle out) and its whites on a disk from cool at the top to warm at the bottom; a light with both shows Colour and White above it. Bound to the light’s light_hue (or light_temperature for a light with whites only), it reads the light’s saturation, temperature and mode itself, and sends the colour on release (with live also while it is dragged). Below it the account’s favourite colours, up to 15: a tap sets one, + keeps the colour shown, holding one or right-clicking it offers to remove it. On a paired screen or a share link they are shown, not changed. With hue, saturation, temperature and mode and a data-hd-on-change handler, the handler gets { mode: "color", hue, saturation } or { mode: "temperature", temperature }.
| Attribute | What it is |
|---|---|
bind | The light, by its colour: {{ settings.light.cap.light_hue }}, or {{ settings.light.cap.light_temperature }} for a light with whites only. Its saturation, temperature and mode are read from the same light. |
hue | The explicit form instead of bind: the hue, 0–1. |
saturation | The explicit form: the saturation, 0–1. |
temperature | The explicit form: the white, 0 (cool) to 1 (warm); with hue too, both tabs show. |
mode | The explicit form: which it shows now, the colour or the white.One of color, temperature. |
favourites | none leaves the favourite colours out, for a small tile.One of shown, none. Default shown. |
label | Accessible label; defaults to Colour. |
live | Sends the colour while it is dragged too, a few times a second, so the lamp follows the finger; without it, once on release. |
<hd-color-wheel bind="{{ cap.light_hue }}" favourites="none"></hd-color-wheel>