Garry's Mod Wiki

Revision Difference

COLOR:SetHue#563425

<function name="SetHue" parent="Color" type="classfunc">⤶ <description>Converts a <page>Color</page> into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV), sets the [hue](https://en.wikipedia.org/wiki/Hue) and converts it back into an RGB color.⤶ ⤶ This is useful to quickly change the hue of the color without changing saturation or luminance, allowing for things like easy theming.⤶ </description>⤶ <realm>Shared and Menu</realm>⤶ <added>2025.01.23</added>⤶ <args>⤶ <arg name="hue" type="number">The new hue value in degrees [0, 360).</arg>⤶ </args>⤶ </function>⤶ ⤶