(PHP 4, PHP 5, PHP 7)
Get the colors for an index
array imagecolorsforindex ( resource $image, int $index )
Gets the color for a specified index.
Parameters:
image
An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
index
The color index.
Returns:
Returns an associa