/// <summary> /// Creates a <see cref="Color4"/> using <see cref="Color3"/> and float alpha in range (0 - 255). /// </summary> /// <param name="color3">RGB components</param> /// <param name="alpha">Alpha component</param> public Color4(Color3 color3, int alpha) { Raw = new Vector4(color3.ToVector3(), alpha / 255.0f); }
/// <summary> /// Creates a <see cref="Color4"/> using <see cref="Color3"/> and float alpha in range (0.0f - 1.0f). /// </summary> /// <param name="color3">RGB components</param> /// <param name="alpha">Alpha component</param> public Color4(Color3 color3, float alpha) { Raw = new Vector4(color3.ToVector3(), alpha); }