src/Image/Imagick/Color.php
private function setPixel($r, $g, $b, $a = null)
    {
        $a = $a ?? 1;

        return $this->pixel = new \ImagickPixel(
            sprintf('rgba(%d, %d, %d, %.2F)', $r, $g, $b, $a)
        );
    }
private function setPixel($r, $g, $b, $a = null)
    {
        $a = $a ?? 1;

        return $this->pixel = new \ImagickPixel(
            sprintf('rgba(%d, %d, %d, %.2F)', $r, $g, $b, $a)
        );
    }
private function setPixel ( $ r , $ g , $ b , $ a = null ) { $ a = $ a ?? 1 ; return $ this -> pixel = new \ ImagickPixel ( sprintf ( 'rgba(%d, %d, %d, %.2F)' , $ r , $ g , $ b , $ a ) ) ; }
Initiates ImagickPixel from given RGBA values

@param int $r ;
@param int $g
@param int $b
@param int $a

@return \ImagickPixel
Initiates ImagickPixel from given RGBA values