71 public static function lookup(
Color $color,
int $defaultIndex = 0x00): int
73 $colorRgb = $color->
getRGB();
74 if (is_string($colorRgb) && array_key_exists(
"#{$colorRgb}", self::$colorMap)) {
75 return self::$colorMap[
"#{$colorRgb}"];
An exception for terminatinating execution or to throw for unit testing.
static lookup(Color $color, int $defaultIndex=0x00)