fuel/fuel/core/classes/image/imagick.php
protected function create_color($hex, $alpha)
	{
		extract($this->create_hex_color($hex));
		return new \ImagickPixel('rgba('.$red.', '.$green.', '.$blue.', '.round($alpha / 100, 2).')');
	}
protected function create_color($hex, $alpha)
	{
		extract($this->create_hex_color($hex));
		return new \ImagickPixel('rgba('.$red.', '.$green.', '.$blue.', '.round($alpha / 100, 2).')');
	}
protected function create_color ( $ hex , $ alpha ) { extract ( $ this -> create_hex_color ( $ hex ) ) ; return new \ ImagickPixel ( 'rgba(' . $ red . ', ' . $ green . ', ' . $ blue . ', ' . round ( $ alpha / 100 , 2 ) . ')' ) ; }
Creates a new color usable by Imagick.

@param  string   $hex    The hex code of the color
@param  integer  $alpha  The alpha of the color, 0 (trans) to 100 (opaque)
@return string   rgba representation of the hex and alpha values.
Creates a new color usable by Imagick .