Retrieves the value of the color channel specified, as a floating-point number between 0 and 1.
Alpha value is 0.7499961852

Red value is 0.9000076295
Green value is 0.2
Blue value is 0.2

Cyan value is 0.9000076295
Magenta value is 0.2
Yellow value is 0.2
Black value is 0
Retrieves the value of the color channel specified, as a floating-point number between 0 and 1.
Parameters
colorintThe color to get the value of, specified as one of the Imagick color constants. This can be one of the RGB colors, CMYK colors, alpha and opacity e.g (Imagick::COLOR_BLUE, Imagick::COLOR_MAGENTA).
        $color = new \ImagickPixel('rgba(90%, 20%, 20%, 0.75)');

        echo "Alpha value is " . $color->getColorValue(\Imagick::COLOR_ALPHA) . "
"; echo "" . "
"; echo "Red value is " . $color->getColorValue(\Imagick::COLOR_RED) . "
"; echo "Green value is " . $color->getColorValue(\Imagick::COLOR_GREEN) . "
"; echo "Blue value is " . $color->getColorValue(\Imagick::COLOR_BLUE) . "
"; echo "" . "
"; echo "Cyan value is " . $color->getColorValue(\Imagick::COLOR_CYAN) . "
"; echo "Magenta value is " . $color->getColorValue(\Imagick::COLOR_MAGENTA) . "
"; echo "Yellow value is " . $color->getColorValue(\Imagick::COLOR_YELLOW) . "
"; echo "Black value is " . $color->getColorValue(\Imagick::COLOR_BLACK) . "
";