/// <summary> /// Creates a new color from a base color with new alpha value. /// </summary> /// <param name="base">The base color to use, RGB will be copied from this color.</param> /// <param name="a">The new alpha value to assign (0.0-1.0).</param> public Color(Color @base, float a) : this(@base.R, @base.G, @base.B, a) { }
/// <summary> /// Creates a new color from a base color with new alpha value. /// </summary> /// <param name="base">The base color to use, RGB will be copied from this color.</param> /// <param name="a">The new alpha value to assign (0-255).</param> public Color(Color @base, byte a) : this(@base, a / 255.0f) { }