summaryrefslogtreecommitdiff
path: root/docs/js/cielab.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-11-25 23:36:29 +0100
committerJules Laplace <julescarbon@gmail.com>2018-11-25 23:36:29 +0100
commitb45e4110f5c6831a1b67fe84867f98b354a6a453 (patch)
treef2cc6cbea217806fe2ea7121edd3d92b00b4bbe8 /docs/js/cielab.js
parent218fcf63364a1008de200d2f28aff4c94a5a87a7 (diff)
working in safari
Diffstat (limited to 'docs/js/cielab.js')
-rw-r--r--docs/js/cielab.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/js/cielab.js b/docs/js/cielab.js
index 2293f0d..14c096f 100644
--- a/docs/js/cielab.js
+++ b/docs/js/cielab.js
@@ -29,7 +29,7 @@ var cielab = (function(){
return rgba_string(rgb, aa)
}
}
- function rgba_string (rgb, a) { return "rgb(" + rgb.map(Math.round).join(",") + "," + a + ")" }
+ function rgba_string (rgb, a) { return "rgba(" + rgb.map(Math.round).join(",") + "," + a + ")" }
function hex_string (rgb) { return "#" + rgb.map(Math.round).map(function(n){ var s = n.toString(16); return s.length == 1 ? "0"+s : s }).join("") }
function mix(n,a,b){ return n*a + (1-n)*b }