Garry's Mod Wiki

Revision Difference

Color:ToHSV#561624

<function name="ToHSV" parent="Color" type="classfunc"> <description>Converts a <page>Color</page> into HSV color space. This calls <page>Global.ColorToHSV</page> internally.</description>⤶ ⤶ <file line="67-L74">lua/includes/util/color.lua</file>⤶ <realm>Shared and Menu</realm> <file line="67-L74">lua/includes/util/color.lua</file>⤶ ⤶ <description>⤶ ⤶ Encodes a RGB <page>Color</page> into the HSV color space. ⤶ This function uses <page>Global.ColorToHSV</page> internally.⤶ ⤶ </description>⤶ ⤶ <rets> <ret name="" type="number">The hue in degrees [0, 360).</ret>⤶ <ret name="" type="number">The saturation in range [0, 1].</ret>⤶ <ret name="" type="number">The value in range [0, 1].</ret> <ret name="Hue" type="number">⤶ Degrees in range [ 0 , 360 )⤶ </ret> <ret name="Saturation" type="number">⤶ Range [ 0 , 1 ]⤶ </ret>⤶ <ret name="Brightness" type="number">⤶ Range [ 0 , 1 ]⤶ </ret>⤶ </rets> </function>