Returns the color described by the ImagickPixel object, as an array. If the color has an opacity channel set, this is provided as a fourth value in the list.
Create an ImagickPixel with the predefined color 'brown' and set the color to have an alpha of 25%

Standard values

r : 165
g : 42
b : 42
a : 0

Normalized values

r : 0.64705882352941
g : 0.16470588235294
b : 0.16470588235294
a : 0.25000381475547
Returns the color described by the ImagickPixel object, as an array. If the color has an opacity channel set, this is provided as a fourth value in the list.
Parameters
normalizedboolNormalize the color values
        $color = new \ImagickPixel('brown');
        $color->setColorValue(\Imagick::COLOR_ALPHA, 0.25);

        echo "

Standard values

" . PHP_EOL; foreach ($color->getColor() as $key => $value) { echo "$key : $value
"; } echo "
"; echo "

Normalized values

" . PHP_EOL; foreach ($color->getColor(true) as $key => $value) { echo "$key : $value
"; }