コード例 #1
0
 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)
     });
 }
コード例 #2
0
 public static string c(ASSColor color)
 {
     return("{" + color.ToString() + "}");
 }
コード例 #3
0
 public static string scaleColor(ASSColor startColor, ASSColor endColor, double scale)
 {
     return(scaleColor(startColor.ToColString(), endColor.ToColString(), scale));
 }