Skip to content

Color ​

Oklab ​

fromLinear ​

luau
Color.Oklab.fromLinear(c: Color3): Vector3

Converts a Color3 in linear sRGB space to a Vector3 in Oklab space

toLinear ​

luau
Color.Oklab.toLinear(c: Vector3, clamped: boolean?): Color3

Converts a Vector3 in Oklab space to a Color3 in linear sRGB space, clamps channels by default

fromHCL ​

luau
Color.Oklab.fromHCL(hcl: Vector3): Vector3

Converts a Vector3 in HCL space to a Vector3 in Oklab space

toHCL ​

luau
Color.Oklab.toHCL(lab: Vector3): Vector3

Converts a Vector3 in Oklab space to a Vector3 in HCL space

fromRGB ​

luau
Color.Oklab.fromRGB(rgb: Color3): Vector3

Converts a Color3 in sRGB space to a Vector3 in Oklab space

toRGB ​

luau
Color.Oklab.toRGB(lab: Vector3, clamped: boolean?): Color3

Converts a Vector3 in Oklab space to a Color3 in sRGB space

sRGB ​

fromLinear ​

luau
Color.sRGB.fromLinear(c: Color3): Color3

Converts linear sRGB space to sRGB space

toLinear ​

luau
Color.sRGB.toLinear(c: Color3): Color3

Converts sRGB space to linear sRGB space