smartVISU
18:19,21.12, v2.7

Basic-Widgets

basic.button basic.checkbox basic.colordisc basic.dual basic.flip basic.float basic.formula basic.glue 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, gad_r, gad_g, gad_b, min, max, step, colors) }}
id
unique id for this widget
gad_r
a gad/item for the r - value (0-255)
gad_g
a gad/item for the g - value (0-255)
gad_b
a gad/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! If you have finised the rgb values will be send.
{{ 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:Marcus Popp

Widgets

Design

Misc