ach of
red, green and blue, <EM>range</EM> should be 255.
If you use Xwindow, which virtually assigns 16bits integers to RGB,
you should specify <EM>range</EM> to 65535.
Note the difference between HSV and HLS.
In HLS, vivid (rainbow) colors are defined with lightness=0.5.
</DD>
</DL>
<BR>
<BR>

<A NAME="37285"></A>
<B>rgb2hls</B> <EM>red green blue &amp;optional (range 255) </EM>[function]

<DL COMPACT>
<DT> 
<DD> 
RGB representation of a color is converted into the corresponding
representation in HLS.
</D