php8.5
Home/ Manual/ gmagick / gmagickpixel/ GmagickPixel::setcolor

GmagickPixel::setcolor

PHP function Edit on GitHub ✎

(PECL gmagick >= Unknown)

Sets the color

Description

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.).

Parameters

color

The color definition to use in order to initialise the GmagickPixel object.

Return Values

The GmagickPixel object.

Source: reference/gmagick/gmagickpixel/setcolor.xml · from the official PHP manual (php/doc-en)