@@ -63,22 +63,22 @@ tree.functions = {
6363 } ,
6464
6565 hue : function ( color ) {
66- return new ( tree . Dimension ) ( Math . round ( color . toHSL ( ) . h ) ) ;
66+ return new ( tree . Dimension ) ( color . toHSL ( ) . h ) ;
6767 } ,
6868 saturation : function ( color ) {
69- return new ( tree . Dimension ) ( Math . round ( color . toHSL ( ) . s * 100 ) , '%' ) ;
69+ return new ( tree . Dimension ) ( color . toHSL ( ) . s * 100 , '%' ) ;
7070 } ,
7171 lightness : function ( color ) {
72- return new ( tree . Dimension ) ( Math . round ( color . toHSL ( ) . l * 100 ) , '%' ) ;
72+ return new ( tree . Dimension ) ( color . toHSL ( ) . l * 100 , '%' ) ;
7373 } ,
7474 hsvhue : function ( color ) {
75- return new ( tree . Dimension ) ( Math . round ( color . toHSV ( ) . h ) ) ;
75+ return new ( tree . Dimension ) ( color . toHSV ( ) . h ) ;
7676 } ,
7777 hsvsaturation : function ( color ) {
78- return new ( tree . Dimension ) ( Math . round ( color . toHSV ( ) . s * 100 ) , '%' ) ;
78+ return new ( tree . Dimension ) ( color . toHSV ( ) . s * 100 , '%' ) ;
7979 } ,
8080 hsvvalue : function ( color ) {
81- return new ( tree . Dimension ) ( Math . round ( color . toHSV ( ) . v * 100 ) , '%' ) ;
81+ return new ( tree . Dimension ) ( color . toHSV ( ) . v * 100 , '%' ) ;
8282 } ,
8383 red : function ( color ) {
8484 return new ( tree . Dimension ) ( color . rgb [ 0 ] ) ;
@@ -93,15 +93,15 @@ tree.functions = {
9393 return new ( tree . Dimension ) ( color . toHSL ( ) . a ) ;
9494 } ,
9595 luma : function ( color ) {
96- return new ( tree . Dimension ) ( Math . round ( color . luma ( ) * color . alpha * 100 ) , '%' ) ;
96+ return new ( tree . Dimension ) ( color . luma ( ) * color . alpha * 100 , '%' ) ;
9797 } ,
9898 luminance : function ( color ) {
9999 var luminance =
100100 ( 0.2126 * color . rgb [ 0 ] / 255 )
101101 + ( 0.7152 * color . rgb [ 1 ] / 255 )
102102 + ( 0.0722 * color . rgb [ 2 ] / 255 ) ;
103103
104- return new ( tree . Dimension ) ( Math . round ( luminance * color . alpha * 100 ) , '%' ) ;
104+ return new ( tree . Dimension ) ( luminance * color . alpha * 100 , '%' ) ;
105105 } ,
106106 saturate : function ( color , amount ) {
107107 // filter: saturate(3.2);
0 commit comments