Expand description
Color utils.
Functionsยง
- css_
srgb_ color_ to_ linear - Converts a CSS style sRGB color into a
Vec4
. - f32_
to_ u8 - linear_
xfer_ f16 - Applies a linear transfer function to a 16-bit floating-point color component.
- linear_
xfer_ f32 - Applies a linear transfer function to a 32-bit floating-point color component.
- linear_
xfer_ u8 - Applies a linear transfer function to an 8-bit unsigned integer color component.
- linear_
xfer_ u16 - Applies a linear transfer function to a 16-bit unsigned integer color component.
- linear_
xfer_ vec4 - Applies a linear transfer function to each component of a
Vec4
. - opto_
xfer_ u8 - Applies an optical transfer function to an 8-bit unsigned integer color component.
- rgb_
hex_ color - Converts an RGB hex color.
- u8_
to_ f32 - u16_
to_ u8