Basic-Widgets

basic.button basic.checkbox basic.colordisc basic.dual basic.flip basic.float basic.formula basic.glue basic.multistate basic.rgb basic.shifter basic.shutter basic.slider basic.switch basic.symbol basic.tank basic.text basic.trigger basic.value


basic.colordisc

Displays a colordisc-rgb-selector

Parameters
{{basic.colordisc(id, item_r, item_g, item_b, min, max, step, colors) }}
id
unique id for this widget
item_r
a item for the r - value (0-255)
item_g
a item for the g - value (0-255)
item_b
a item for the b - value (0-255)
min
the minimum value if the light is off (optional, for future use)
max
the maximum value if the light is full on (optional, default 255)
step
the granularity of the rings (optional, default 8)
colors
the number of colored segments (optional, default 10)
Examples
Choose your color! After selection the RGB values will be sent.
{{ basic.colordisc('c1', 'bath.color.r', 'bath.color.g', 'bath.color.b') }}
{{ basic.colordisc('c2', 'bath.color.r', 'bath.color.g', 'bath.color.b', 0, 255, 16, 20) }}
10 colors
16 steps and 20 colors

Author:Martin Gleiß and others
inspired by Marcus Popp

Widgets

Design

Misc