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>()); }
/// <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)); }
public ColorCount(ColorRGB color, int count) { Count = count; Color = color; }