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

lch2rgb.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: 3110dbed7b48f6d8375c17300a85ee9d2da1ae01 (plain)
1
2
3
4
5

lch2rgb = (l,c,h) ->
    [L,a,b] = lch2lab l,c,h
    [r,g,b] = lab2rgb L,a,b
    [limit(r,0,255), limit(g,0,255), limit(b,0,255)]