Calculate colour temperature in K

前端 未结 6 1082
忘掉有多难
忘掉有多难 2021-01-07 19:55

I have written a lib for working with colours and stuck trying to calculate Tc(k). From what I have read working in the CIE 1931 XYZ colour space i

6条回答
  •  盖世英雄少女心
    2021-01-07 20:08

    I realize this is an old question, but I was struggling to find an answer as well. I finally came across this nifty calculator that also posts the formula as follows:

    n = (x-0.3320)/(0.1858-y)

    CCT = 437*n^3 + 3601*n^2 + 6861*n + 5517

    Hope this helps anyone else who's still looking.

提交回复
热议问题