Пример #1
0
 /// <summary>
 /// Constructs a color from a 4 float color.
 /// </summary>
 /// <param name="color">The color to approximate.</param>
 public Color(OpenTK.Graphics.Color4 color) : this(color.ToArgb())
 {
 }
Пример #2
0
 public System.Drawing.Color ToSystemColor(OpenTK.Graphics.Color4 color) => System.Drawing.Color.FromArgb(color.ToArgb());
Пример #3
0
 /// <summary>
 /// OpenTK color to System.Drawing.Color
 /// </summary>
 /// <param name="color"></param>
 /// <returns></returns>
 public static System.Drawing.Color ToSystemColor(this OpenTK.Graphics.Color4 color)
 {
     return(System.Drawing.Color.FromArgb(color.ToArgb()));
 }