Garry's Mod Wiki

Revision Difference

Global.HSLToColor#514926

<function name="HSLToColor" parent="Global" type="libraryfunc"> <description> Converts a color from [HSL color space](https://en.wikipedia.org/wiki/HSL_and_HSV) into RGB color space and returns a <page>Color</page>. <bug issue="2407">The returned color will not have the color metatable.</bug> </description> <realm>Shared and Menu</realm> <args> <arg name="hue" type="number">The hue in degrees from 0-360.</arg> <arg name="saturation" type="number">The saturation from 0-1.</arg> <arg name="value" type="number">The lightness from 0-1.</arg> </args> <rets> <ret name="" type="table">The <page>Color</page> created from the HSL color space.</ret> </rets> </function>