예제 #1
0
 public static T Mix <T>(this IColorSpace color, ColorRGB mix, float amount = 0.5f) where T : IColorSpace, new()
 {
     return(color.Mix(mix, amount).To <T>());
 }
예제 #2
0
 /// <summary>
 /// Converts a UIColor value to a ColorRGB object.
 /// </summary>
 /// <returns>ColorRGB</returns>
 /// <param name="color">Target UIColor</param>
 public static ColorRGB ToColorRGB(this Color color)
 {
     return(ColorRGB.FromRGBA(color.R, color.G, color.B, color.A));
 }
예제 #3
0
 public ColorCount(ColorRGB color, int count)
 {
     Count = count;
     Color = color;
 }