Color
in package
Table of Contents
Methods
- map() : array<string|int, mixed>
- Read color.
Methods
map()
Read color.
public
static map(int $color, array<string|int, mixed> $palette, int $version) : array<string|int, mixed>
Parameters
- $color : int
-
Indexed color
- $palette : array<string|int, mixed>
-
Color palette
- $version : int
Return values
array<string|int, mixed> —RGB color value, example: ['rgb' => 'FF0000']