class Color (View source)

Methods

static array
map(int $color, array $palette, int $version)

Read color.

Details

static array map(int $color, array $palette, int $version)

Read color.

Parameters

int $color Indexed color
array $palette Color palette
int $version

Return Value

array RGB color value, example: ['rgb' => 'FF0000']