Documentation

Color
in package

Table of Contents

Methods

map()  : array<string|int, string>
Read color.

Methods

map()

Read color.

public static map(int $color, array<string|int, array<string|int, string>> $palette, int $version) : array<string|int, string>
Parameters
$color : int

Indexed color

$palette : array<string|int, array<string|int, string>>

Color palette

$version : int
Return values
array<string|int, string>

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


        
On this page

Search results