mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-30 12:07:09 +00:00
fhemweb_colorpicker.js: added doku
git-svn-id: https://svn.fhem.de/fhem/trunk@15183 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
356a891dc4
commit
4defab0645
@ -468,3 +468,31 @@ colorpicker_hsv2rgb(h,s,v) {
|
|||||||
|
|
||||||
return colorpicker_rgb2hex( Math.round(r*255),Math.round(g*255),Math.round(b*255) );
|
return colorpicker_rgb2hex( Math.round(r*255),Math.round(g*255),Math.round(b*255) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
=pod
|
||||||
|
|
||||||
|
=begin html
|
||||||
|
|
||||||
|
<li>:colorpicker,RGB - create an RGB colorpicker</li>
|
||||||
|
|
||||||
|
<li>:colorpicker,HSV - create an HSV colorpicker to set an rgb value</li>
|
||||||
|
|
||||||
|
<li>:colorpicker,HSVp - create an HSV popup colorpicker to set an rgb value</li>
|
||||||
|
|
||||||
|
<li>:colorpicker,HSV,<hue>,<min>,<step>,<max>,<sat>,<min>,<step>,<max>,<bri>,<min>,<step>,<max>
|
||||||
|
- create an HSV colorpicker that uses <hue>, <sat> and <bri> as commands
|
||||||
|
to set the color. can also be used with HSVp to create a popup colorpicker<br>
|
||||||
|
if the device has no combined hsv reading it can be create with the following user reading:<code>attr <device> userReadings hsv {ReadingsVal($name,'hue','0').','.ReadingsVal($name,'sat','100').','.ReadingsVal($name,'bri','100')}</code></li>
|
||||||
|
|
||||||
|
<li>:colorpicker,CT,<min>,<step>,<max> - create a color temperature colorpicker</li>
|
||||||
|
|
||||||
|
<li>:colorpicker,BRI,<min>,<step>,<max> - create a brightness colorpicker</li>
|
||||||
|
|
||||||
|
<li>:colorpicker,HUE,<min>,<step>,<max> - create a hue colorpicker</li>
|
||||||
|
please see the fhem wiki <a hef='https://wiki.fhem.de/wiki/Color#Colorpicker'>Color</a> section for example screenshots.<br><br>
|
||||||
|
|
||||||
|
=end html
|
||||||
|
|
||||||
|
=cut
|
||||||
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user