CAM16 SCD
The CAM16 SCD color space is not registered in Color
by default
Properties
Name: cam16-scd
White Point: D65 / 2˚
Coordinates:
Name | Range* |
---|---|
j | [0, 100] |
a | [-40, 40] |
b | [-40, 40] |
* Space is not bound to the range and is only used as a reference to define percentage inputs/outputs in relation to the Display P3 color space.
This is the SCD variant of the CAM16 UCS color space and is optimized for "small" color distancing. See CAM16 UCS for more info.
Viewing Conditions
CAM16 SCD uses the same environment setup for viewing conditions as CAM16 JMh, so check out the related documentation if creating a CAM16 SCD variant is desired.
Channel Aliases
Channels | Aliases |
---|---|
j | lightness |
a | |
b |
Input/Output
The CAM16 SCD space is not currently supported in the CSS spec, the parsed input and string output formats use the color()
function format using the custom name --cam16-scd
:
color(--cam16-scd j a b / a) // Color function
The string representation of the color object and the default string output use the color(--cam16-scd j a b / a)
form.
>>> Color("cam16-scd", [59.178, 33.597, 17.41], 1)
color(--cam16-scd 59.178 33.597 17.41 / 1)
>>> Color("cam16-scd", [78.364, 8.3723, 24.725], 1).to_string()
'color(--cam16-scd 78.364 8.3723 24.725)'
Registering
from coloraide import Color as Base
from coloraide.spaces.cam16_ucs import CAM16SCD
class Color(Base): ...
Color.register(CAM16SCD())