Kirki_Color::get_alpha_from_rgba PHP Method

get_alpha_from_rgba() public static method

Get the alpha channel from an rgba color.
public static get_alpha_from_rgba ( string $color ) : integer | float
$color string The rgba color formatted like rgba(r,g,b,a).
return integer | float The alpha value of the color.
        public static function get_alpha_from_rgba($color)
        {
            $obj = ariColor::newColor($color);
            return $obj->alpha;
        }