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