Garry's Mod Wiki

Revision Difference

Color:ToHSL#518237

<function name="ToHSL" parent="Color" type="classfunc"> <description>Converts a <page>Color</page> into HSL color space. This calls <page>Global.ColorToHSL</page> internally.</description> <realm>Shared and Menu</realm> <rets> <ret name="" type="number">The hue in degrees &amp;#91;0, 360).</ret> <ret name="" type="number">The saturation in the range &amp;#91;0, 1].</ret> <ret name="" type="number">The lightness in the range &amp;#91;0, 1].</ret> <ret name="" type="number">The hue in degrees &#91;0, 360).</ret> <ret name="" type="number">The saturation in the range &#91;0, 1].</ret> <ret name="" type="number">The lightness in the range &#91;0, 1].</ret> </rets> </function>