Global Variable

kCGColorSpaceExtendedSRGB

The extended sRGB color space.

Declaration

const CFStringRef kCGColorSpaceExtendedSRGB;

Discussion

This color space has the same colorimetry as kCGColorSpaceSRGB, but you can encode component values below 0.0 and above 1.0. Negative values are encoded as the signed reflection of the original encoding function, as shown in the formula below:

extendedTransferFunction(x) = sign(x) ✖️ sRGBTransferFunction(abs(x))