<?php
public ImagickPixel::__construct(string $color = ?)
?>
<?php
$clr1 = 'color name';
$color1 = new ImagickPixel($clr1);
// . . . . . . . . . . . . . . . .
?>
<?php
$clr2 = "rgb('number for red', 'number for green', 'number for blue')";
// number for... from 0 to 255
$color2 = new ImagickPixel($clr2);
// . . . . . . . . . . . . . . . .
?>
<?php
$clr3 = "rgba('percent for red', 'percent for green', 'percent for blue', 'alpha channel')";
// percent for... from 0% to 100%
// alpha channel from 0 to 1
$color3 = new ImagickPixel($clr3);
// . . . . . . . . . . . . . . . .
?>