Roo/lib/Color.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 9 Feb 2012 05:53:27 +0000 (13:53 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 9 Feb 2012 05:53:27 +0000 (13:53 +0800)
Roo/lib/Color.js

index 1a4f6fb..73b3064 100644 (file)
@@ -196,6 +196,15 @@ Roo.lib.Colour = function(){
     node.style.backgroundColor = this.getCSSHexadecimalRGB();
 
   };
+  
+  this.toRGB()
+  {
+    var r = this.getIntegerRGB();
+    return new Roo.lib.RGBColour(r.r,r,g,r,b,r.a);
+    
+  }
+  
+  
 
 }