diff options
Diffstat (limited to 'node_modules/chroma-js/src/conversions/lab2lch.coffee')
-rw-r--r-- | node_modules/chroma-js/src/conversions/lab2lch.coffee | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/node_modules/chroma-js/src/conversions/lab2lch.coffee b/node_modules/chroma-js/src/conversions/lab2lch.coffee new file mode 100644 index 0000000000..54842a4d6d --- /dev/null +++ b/node_modules/chroma-js/src/conversions/lab2lch.coffee @@ -0,0 +1,7 @@ + +lab2lch = () -> + [l, a, b] = unpack arguments + c = Math.sqrt(a * a + b * b) + h = Math.atan2(b, a) / Math.PI * 180 + [l, c, h] + |