CUE.NET.Helper.ColorHelper.GetFloatA C# (CSharp) Method

GetFloatA() public static method

Converts the alpha-value of the CorsairColor to a float value in the range [0..1].
public static GetFloatA ( this color ) : float
color this The color to take the alpha-value from.
return float
        public static float GetFloatA(this CorsairColor color)
        {
            return color.A / 255f;
        }