(PECL gmagick >= Unknown)
GmagickPixel::setcolor — Sets the color
public GmagickPixel::setcolor ( string $color ) : GmagickPixel
Sets the color described by the GmagickPixel object, with a string (e.g. "blue", "#0000ff", "rgb(0,0,255)", "cmyk(100,100,100,10)", etc.).
color
The color definition to use in order to initialise the GmagickPixel object.
The GmagickPixel object on success.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/gmagickpixel.setcolor.php