ColorSpaces
Registry and utilities for canonical color space management.
Provides a central location for mapping color space aliases to canonical names
and defining expected channel structures for each space.
Methods
expectedChannels
static
public static function expectedChannels(string $space): array
Get the expected channel names for a given color space.
Parameters
| Name | Type | Default |
|---|---|---|
$space |
string | - |
normalize
static
public static function normalize(string $space): string
Normalize a color space name and resolve its aliases.
Parameters
| Name | Type | Default |
|---|---|---|
$space |
string | - |