Only output bytes read when something's wrong
[kaka/cakelight.git] / src / kaka / cakelight / Color.java
index fe010c7..0332371 100644 (file)
@@ -1,6 +1,8 @@
 package kaka.cakelight;
 
 public class Color {
+    public static final Color BLACK = Color.rgb(0, 0, 0);
+
     private static int[] gammaCorrection = new int[256];
 
     public static void calculateGammaCorrection(double gamma) {
@@ -106,4 +108,9 @@ public class Color {
                 (int)(b * invertedValue + other.b * value)
         );
     }
+
+    @Override
+    public String toString() {
+        return "Color{r=" + r + ", g=" + g + ", b=" + b + "}";
+    }
 }