color
Oklab and Oklch implementation, alongside Color3 extension methods.
Properties
WHITE
luau
color.WHITEBLACK
luau
color.BLACKINK_BLACK
luau
color.INK_BLACKINK_WHITE
luau
color.INK_WHITEINK_ORANGE
luau
color.INK_ORANGEFunctions
linear_srgb_to_oklab
oklab_to_linear_srgb
compute_max_saturation
luau
color.compute_max_saturation(a: number, b: number): numberfind_cusp
luau
color.find_cusp(a: number, b: number): (number, number)find_gamut_intersection
luau
color.find_gamut_intersection(a: number, b: number, L1: number, C1: number, L0: number): numbergamut_clip_preserve_chroma
gamut_clip_project_to_0_5
gamut_clip_project_to_L_cusp
gamut_clip_adaptive_L0_0_5
gamut_clip_adaptive_L0_L_cusp
default_gamut_clip
color3_to_linear_srgb
linear_srgb_to_color3
oklch_to_oklab
oklab_to_oklch
color3_to_lab
lab_to_color3
color3_to_lch
lch_to_color3
shade_lab
saturate_lab
rotate_hue_lab
shade
saturate
rotate_hue_color
luminance
luau
color.luminance(c: Color3): numbercontrast_luminance
luau
color.contrast_luminance(la: number, lb: number): number