Kirki_Color::get_alpha_from_rgba PHP Méthode

get_alpha_from_rgba() public static méthode

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).
Résultat integer | float The alpha value of the color.
        public static function get_alpha_from_rgba($color)
        {
            $obj = ariColor::newColor($color);
            return $obj->alpha;
        }