Welcome to mirror list, hosted at ThFree Co, Russian Federation.

lab2lch.coffee « conversions « src « chroma-js « node_modules - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 54842a4d6d4e70a11a18c5664569e0d75837e72d (plain)
1
2
3
4
5
6
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]