Module veloren_common::util::color
source · Functions§
- Preserves the luma of one color while changing its chromaticity to match the other
- Convert hsv to rgb. Expects h [0, 360], s [0, 1], v [0, 1]
- Convert rgb to hsv. Expects rgb to be [0, 1].
- Convert linear rgb to CIExyY
- Convert linear rgb to CIEXYZ
- directly converted from ‘vec3 srgb_to_linear(vec3 srgb)’ function in ‘srgb.glsl’
- This function is optimized for speed over perfect accuracy
- Convert to CIExyY to linear rgb