1 package kaka.cakelight;
6 public static Color rgb(double r, double g, double b) {
7 return rgb((int)(255 * r), (int)(255 * g), (int)(255 * b));
10 public static Color rgb(int r, int g, int b) {
11 Color c = new Color();
30 public Color interpolate(Color other, double value) {
31 double invertedValue = 1 - value;
33 (int)(r * invertedValue + other.r * value),
34 (int)(g * invertedValue + other.g * value),
35 (int)(b * invertedValue + other.b * value)