embcol.color.srgb_to_oklab¶
- embcol.color.srgb_to_oklab(srgb, *, copy=True)[source]¶
Convert sRGB colors to Oklab colors.
- Parameters:
srgb (array-like of
float) – sRGB colors. The shape must be(3,)or(N, 3), whereNis the number of colors. The gamut of the sRGB color space is [0, 1]3. A given object can be overwritten with an output if copy is notTrue.copy (
boolorNone, optional) – IfTrueis given, srgb is always copied. IfNoneis given, srgb is copied only if needed. IfFalseis given, srgb is not copied and an error is raised if copying is needed.
- Returns:
numpy.ndarrayoffloat– Oklab colors. The shape is the same as srgb.