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

CreateColorFromFloat() public static method

Creates a CorsairColor object from the respective rgb-float-values in the range [0..1].
public static CreateColorFromFloat ( float a, float r, float g, float b ) : CorsairColor
a float The alpha-value in the range [0..1].
r float The red-value in the range [0..1].
g float The green-value in the range [0..1].
b float The blue-value in the range [0..1].
return CUE.NET.Devices.Generic.CorsairColor
        public static CorsairColor CreateColorFromFloat(float a, float r, float g, float b)
        {
            return new CorsairColor(GetIntColorFromFloat(a), GetIntColorFromFloat(r), GetIntColorFromFloat(g), GetIntColorFromFloat(b));
        }