Commit 04f2d6f8 by Иван Кубота

it's working

parent 4ca7ca1b
...@@ -314,4 +314,11 @@ function rgbToHsl(r, g, b) { ...@@ -314,4 +314,11 @@ function rgbToHsl(r, g, b) {
} }
return [ h, s, l ]; return [ h, s, l ];
}
function HEX2RGB(hex){
var color = (hex+'').substr( 1 ) || '',
r = parseInt( color[ 0 ] + color[ 1 ], 16 ),
g = parseInt( color[ 2 ] + color[ 3 ], 16 ),
b = parseInt( color[ 4 ] + color[ 4 ], 16 );
return [r,g,b];
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment