/// <summary> /// Initializes a new instance of the <see cref="MyColor4"/> struct. /// </summary> /// <param name="color"><see cref="MyColor3"/> used to initialize the color.</param> /// <param name="alpha">The alpha component of the color.</param> public MyColor4(MyColor3 color, float alpha) { Red = color.Red; Green = color.Green; Blue = color.Blue; Alpha = alpha; }
/// <summary> /// Initializes a new instance of the <see cref="MyColor4"/> struct. /// </summary> /// <param name="color"><see cref="MyColor3"/> used to initialize the color.</param> public MyColor4(MyColor3 color) { Red = color.Red; Green = color.Green; Blue = color.Blue; Alpha = 1.0f; }