def hsva_to_rgba(h, s, v, a):
    """
    Converts a HSVA color to a RGBA color.

    :param h: Hue
    :type h: int, float
    :param s: Saturation
    :type s: int, float
    :param v: Value
    :type v: int, float
    :param a: Alpha
    :type a: int, float
    :return: RGBA equivalent as list [r,g,b,a]
    :rtype: list
    """
    h_i = int(round(h*6))
    f = h*6 - h_i
    p = v * (1 - s)
    q = v * (1 - f*s)
    t = v * (1 - (1 - f) * s)
    if h_i==0:
        return [v, t, p, a]
    elif h_i==1:
        return [q, v, p, a]
    elif h_i==2:
        return [p, v, t, a]
    elif h_i==3:
        return [p, q, v, a]
    elif h_i==4:
        return [t, p, v, a]
    elif h_i==5:
        return [v, p, q, a]
    print('h_i is {}'.format(h_i))
    return [1,1,1,a]