PHP imagecolorset - to set the color palette index specified
imagecolorset - to set the color palette index specified.
grammar
void imagecolorset ( resource $image , int $index , int $red , int $green , int $blue )
This function will set the palette specified index to the specified color. To create a similar area fill (flood-fill) in the palette of the image effect is useful, eliminating the need really to fill overhead.
related articles
- imagecolorat () to obtain an index value of a color pixel.