ReferenceWhite

Resolver for reference white points of standard color spaces.

Methods

forSpace

static
public static function forSpace(string $space): WhitePoint

Get the reference white point for a given color space identifier.

Supported aliases:
- sRGB family: 'srgb', 'rgb'
- Display P3: 'display-p3', 'displayp3'
- Rec.2020: 'rec2020', 'rec-2020', 'bt2020', 'bt-2020'
- A98 RGB: 'a98-rgb', 'a98', 'adobe-rgb'
- ProPhoto RGB: 'prophoto-rgb', 'prophoto', 'romm-rgb'
- CIELAB family: 'lab', 'lch'

Parameters
NameTypeDefault
$space string -