Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

color_space.wgsl

Import path

Constants

TAU

#
const TAU: f32 = 2. * PI

HUE_GUARD

#
const HUE_GUARD: f32 = 0.0001

Functions

gamma

#
fn gamma (
value: f32
) -> f32

inverse_gamma

#
fn inverse_gamma (
value: f32
) -> f32

srgb_to_linear_rgb

#
fn srgb_to_linear_rgb ( ) -> vec3<f32>

linear_rgb_to_srgb

#
fn linear_rgb_to_srgb ( ) -> vec3<f32>

oklab_to_linear_rgb

#
fn oklab_to_linear_rgb ( ) -> vec3<f32>

hsl_to_linear_rgb

#
fn hsl_to_linear_rgb ( ) -> vec3<f32>

hsv_to_linear_rgb

#
fn hsv_to_linear_rgb ( ) -> vec3<f32>

oklch_to_linear_rgb

#
fn oklch_to_linear_rgb ( ) -> vec3<f32>

mix_oklch

#
fn mix_oklch ( ) -> vec3<f32>

mix_oklch_long

#
fn mix_oklch_long ( ) -> vec3<f32>

mix_hsl

#
fn mix_hsl ( ) -> vec3<f32>

mix_hsl_long

#
fn mix_hsl_long ( ) -> vec3<f32>

mix_hsv

#
fn mix_hsv ( ) -> vec3<f32>

mix_hsv_long

#
fn mix_hsv_long ( ) -> vec3<f32>