summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorjules <jules@okfoc.us>2014-09-29 16:25:22 -0400
committerjules <jules@okfoc.us>2014-09-29 16:25:22 -0400
commit1631cdf643283fc71bc9d70b5dcbce03ab9c2386 (patch)
treef466beee144ddf1ac8e06406412af8a01ef31017 /js
parent984f2c492c8ffd6bf6b4717557ccf835f240a592 (diff)
sp
Diffstat (limited to 'js')
-rw-r--r--js/color.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/color.js b/js/color.js
index 5073e7f..215c3e6 100644
--- a/js/color.js
+++ b/js/color.js
@@ -16,11 +16,11 @@ function rgb2xyz(rgb){
var var_G = ( rgb[1] / 255 ) //G from 0 to 255
var var_B = ( rgb[2] / 255 ) //B from 0 to 255
- if ( var_R > 0.04045 ) var_R = Math.pow(( ( var_R + 0.055 ) / 1.055, 2.4)
+ if ( var_R > 0.04045 ) var_R = Math.pow( ( var_R + 0.055 ) / 1.055, 2.4)
else var_R = var_R / 12.92
- if ( var_G > 0.04045 ) var_G = Math.pow(( ( var_G + 0.055 ) / 1.055, 2.4)
+ if ( var_G > 0.04045 ) var_G = Math.pow( ( var_G + 0.055 ) / 1.055, 2.4)
else var_G = var_G / 12.92
- if ( var_B > 0.04045 ) var_B = Math.pow(( ( var_B + 0.055 ) / 1.055, 2.4)
+ if ( var_B > 0.04045 ) var_B = Math.pow( ( var_B + 0.055 ) / 1.055, 2.4)
else var_B = var_B / 12.92
var_R = var_R * 100