Made the ambient mode nicer
[kaka/cakelight.git] / src / kaka / cakelight / Color.java
index ba85866..da09127 100644 (file)
@@ -3,6 +3,10 @@ package kaka.cakelight;
 public class Color {
     private int r, g, b;
 
+    public static Color rgb(double r, double g, double b) {
+        return rgb((int)(255 * r), (int)(255 * g), (int)(255 * b));
+    }
+
     public static Color rgb(int r, int g, int b) {
         Color c = new Color();
         c.r = r;