Created
October 9, 2017 10:12
-
-
Save VictorVelarde/eae9d475249e2f31088f80944bedbedc to your computer and use it in GitHub Desktop.
chroma SST palette
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -2 to 36ºC (every 2º Cel) | |
const colors = [ | |
'#A201F0' /* -2 */, | |
'#2C08F0' /* 0 */, | |
'#0808C2', | |
'#082575', | |
'#086474', | |
'#0884A0', | |
'#08BABA' /* 10 */, | |
'#08E4EF', | |
'#08EACC', | |
'#08D678', | |
'#08A950', | |
'#088D3D' /* 20 */, | |
'#3AAA08', | |
'#7BD408', | |
'#E0E808', | |
'#E0B408', | |
'#E06408' /* 30 */, | |
'#D90D08', | |
'#940808', | |
'#420505' /* 36 */ | |
]; | |
const celsius = [ | |
-2.0, | |
0, | |
2, | |
4, | |
6, | |
8, | |
10, | |
12, | |
14, | |
16, | |
18, | |
20, | |
22, | |
24, | |
26, | |
28, | |
30, | |
32, | |
34, | |
36 | |
]; | |
var s = chroma.scale(colors).domain(celsius); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment