Garry's Mod Wiki

HWBToColor

  Color HWBToColor( number hue, number whiteness, number blackness )

Recently Added

This was recently added in version (2025.01.23). It might only be available on the Dev Branch right now.

Description

Converts a color from HWB color space (Hue-Whiteness-Blackness) into RGB color space and returns a Color.

Arguments

1 number hue
The hue of the color in degrees from 0-360.
2 number whiteness
The whiteness of the color from 0-1.
3 number blackness
The blackness of the color from 0-1.

Returns

1 Color
The Color created from the HWB color space.