public static ASSColor RandomColor(Random rnd, int index, ASSColor color1, ASSColor color2) { return(new ASSColor { A = RandomInt(rnd, color1.A, color2.A), Index = index, R = RandomInt(rnd, color1.R, color2.R), G = RandomInt(rnd, color1.G, color2.G), B = RandomInt(rnd, color1.B, color2.B) }); }
public static string c(ASSColor color) { return("{" + color.ToString() + "}"); }
public static string scaleColor(ASSColor startColor, ASSColor endColor, double scale) { return(scaleColor(startColor.ToColString(), endColor.ToColString(), scale)); }