-
Notifications
You must be signed in to change notification settings - Fork 4
/
colorPalettes.js
47 lines (43 loc) · 18 KB
/
colorPalettes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export const colorPalettes = {
// Viridis palettes
// https://cran.r-project.org/web/packages/viridis/vignettes/intro-to-viridis.html
"viridis": { values: [[0.267, 0.004, 0.329], [0.275, 0.027, 0.353], [0.278, 0.051, 0.376], [0.278, 0.075, 0.396], [0.282, 0.094, 0.416], [0.282, 0.114, 0.435], [0.282, 0.137, 0.455], [0.282, 0.157, 0.471], [0.278, 0.176, 0.482], [0.275, 0.196, 0.494], [0.271, 0.216, 0.506], [0.267, 0.231, 0.518], [0.259, 0.251, 0.525], [0.251, 0.271, 0.533], [0.243, 0.286, 0.537], [0.239, 0.306, 0.541], [0.227, 0.325, 0.545], [0.22, 0.345, 0.549], [0.212, 0.361, 0.553], [0.204, 0.376, 0.553], [0.196, 0.392, 0.557], [0.192, 0.408, 0.557], [0.184, 0.424, 0.557], [0.176, 0.439, 0.557], [0.173, 0.451, 0.557], [0.165, 0.467, 0.557], [0.161, 0.482, 0.557], [0.153, 0.498, 0.557], [0.149, 0.51, 0.557], [0.141, 0.525, 0.557], [0.137, 0.541, 0.553], [0.129, 0.557, 0.553], [0.125, 0.573, 0.549], [0.122, 0.588, 0.545], [0.122, 0.604, 0.541], [0.122, 0.62, 0.537], [0.122, 0.631, 0.529], [0.129, 0.647, 0.522], [0.137, 0.663, 0.514], [0.149, 0.678, 0.506], [0.165, 0.69, 0.498], [0.184, 0.706, 0.486], [0.208, 0.718, 0.475], [0.231, 0.733, 0.459], [0.259, 0.745, 0.443], [0.29, 0.757, 0.427], [0.322, 0.773, 0.412], [0.353, 0.784, 0.392], [0.396, 0.796, 0.369], [0.431, 0.808, 0.345], [0.467, 0.82, 0.325], [0.506, 0.827, 0.302], [0.545, 0.839, 0.275], [0.584, 0.847, 0.251], [0.627, 0.855, 0.224], [0.667, 0.863, 0.196], [0.71, 0.871, 0.169], [0.753, 0.875, 0.145], [0.792, 0.882, 0.122], [0.835, 0.886, 0.102], [0.875, 0.89, 0.094], [0.918, 0.898, 0.102], [0.957, 0.902, 0.118], [0.992, 0.906, 0.145]] },
"viridisPlasma": { values: [[0.051, 0.031, 0.529], [0.098, 0.024, 0.549], [0.133, 0.024, 0.565], [0.165, 0.02, 0.576], [0.192, 0.02, 0.592], [0.22, 0.016, 0.604], [0.247, 0.016, 0.612], [0.275, 0.012, 0.624], [0.298, 0.008, 0.631], [0.325, 0.008, 0.639], [0.349, 0.004, 0.647], [0.376, 0.004, 0.651], [0.4, 0, 0.655], [0.424, 0, 0.659], [0.447, 0.004, 0.659], [0.471, 0.004, 0.659], [0.502, 0.016, 0.659], [0.525, 0.024, 0.651], [0.545, 0.039, 0.647], [0.569, 0.055, 0.639], [0.588, 0.075, 0.631], [0.612, 0.09, 0.62], [0.631, 0.106, 0.608], [0.651, 0.125, 0.596], [0.671, 0.141, 0.58], [0.69, 0.161, 0.569], [0.706, 0.18, 0.553], [0.722, 0.196, 0.537], [0.741, 0.216, 0.525], [0.757, 0.231, 0.51], [0.773, 0.251, 0.494], [0.788, 0.267, 0.478], [0.804, 0.29, 0.463], [0.82, 0.306, 0.447], [0.835, 0.325, 0.435], [0.847, 0.341, 0.42], [0.859, 0.361, 0.408], [0.871, 0.38, 0.392], [0.886, 0.396, 0.38], [0.898, 0.416, 0.365], [0.906, 0.435, 0.353], [0.918, 0.455, 0.341], [0.929, 0.475, 0.325], [0.937, 0.494, 0.314], [0.945, 0.514, 0.298], [0.957, 0.533, 0.286], [0.965, 0.553, 0.271], [0.969, 0.576, 0.259], [0.976, 0.604, 0.243], [0.984, 0.624, 0.227], [0.988, 0.647, 0.216], [0.992, 0.671, 0.2], [0.992, 0.694, 0.188], [0.996, 0.718, 0.176], [0.996, 0.741, 0.165], [0.992, 0.765, 0.157], [0.992, 0.792, 0.149], [0.988, 0.816, 0.145], [0.984, 0.843, 0.141], [0.976, 0.867, 0.145], [0.969, 0.894, 0.145], [0.961, 0.922, 0.153], [0.949, 0.949, 0.153], [0.941, 0.976, 0.129]] },
"viridisMagma": {
values: [[0, 0, 0.016], [0.008, 0.004, 0.035], [0.012, 0.012, 0.071], [0.024, 0.02, 0.102], [0.039, 0.031, 0.133], [0.055, 0.043, 0.169], [0.075, 0.051, 0.204], [0.094, 0.059, 0.239], [0.114, 0.067, 0.278], [0.133, 0.067, 0.314], [0.161, 0.067, 0.353], [0.184, 0.067, 0.388], [0.212, 0.063, 0.42], [0.239, 0.059, 0.443], [0.267, 0.059, 0.463], [0.29, 0.063, 0.475], [0.322, 0.075, 0.486], [0.349, 0.082, 0.494], [0.373, 0.094, 0.498], [0.396, 0.102, 0.502], [0.42, 0.114, 0.506], [0.447, 0.122, 0.506], [0.471, 0.133, 0.506], [0.494, 0.141, 0.51], [0.518, 0.149, 0.506], [0.545, 0.161, 0.506], [0.569, 0.169, 0.506], [0.596, 0.176, 0.502], [0.62, 0.184, 0.498], [0.647, 0.192, 0.494], [0.671, 0.2, 0.486], [0.698, 0.208, 0.482], [0.729, 0.22, 0.471], [0.753, 0.227, 0.463], [0.78, 0.239, 0.451], [0.804, 0.251, 0.443], [0.827, 0.263, 0.431], [0.851, 0.275, 0.42], [0.875, 0.29, 0.408], [0.894, 0.31, 0.392], [0.914, 0.329, 0.384], [0.929, 0.353, 0.373], [0.945, 0.376, 0.365], [0.957, 0.404, 0.361], [0.965, 0.431, 0.361], [0.973, 0.463, 0.361], [0.98, 0.49, 0.369], [0.984, 0.522, 0.376], [0.988, 0.557, 0.392], [0.992, 0.588, 0.408], [0.996, 0.616, 0.424], [0.996, 0.647, 0.443], [0.996, 0.675, 0.463], [0.996, 0.706, 0.482], [0.996, 0.733, 0.506], [0.996, 0.761, 0.529], [0.996, 0.792, 0.553], [0.996, 0.82, 0.58], [0.996, 0.847, 0.604], [0.992, 0.878, 0.631], [0.992, 0.906, 0.663], [0.988, 0.933, 0.69], [0.988, 0.965, 0.722], [0.988, 0.992, 0.749]] },
"viridisInferno": {
values: [[0, 0, 0.016], [0.008, 0.004, 0.039], [0.016, 0.012, 0.071], [0.027, 0.02, 0.106], [0.043, 0.027, 0.141], [0.063, 0.035, 0.176], [0.082, 0.043, 0.216], [0.106, 0.047, 0.255], [0.129, 0.047, 0.29], [0.157, 0.043, 0.325], [0.184, 0.039, 0.357], [0.212, 0.035, 0.38], [0.239, 0.035, 0.396], [0.267, 0.039, 0.408], [0.29, 0.047, 0.42], [0.318, 0.055, 0.424], [0.349, 0.063, 0.431], [0.373, 0.075, 0.431], [0.396, 0.082, 0.431], [0.424, 0.094, 0.431], [0.447, 0.102, 0.431], [0.471, 0.11, 0.427], [0.498, 0.118, 0.424], [0.522, 0.129, 0.42], [0.549, 0.137, 0.412], [0.573, 0.145, 0.408], [0.596, 0.153, 0.4], [0.624, 0.165, 0.388], [0.647, 0.173, 0.376], [0.671, 0.184, 0.369], [0.694, 0.196, 0.353], [0.718, 0.208, 0.341], [0.749, 0.224, 0.322], [0.769, 0.235, 0.306], [0.792, 0.251, 0.29], [0.812, 0.267, 0.275], [0.831, 0.282, 0.259], [0.851, 0.302, 0.239], [0.871, 0.322, 0.22], [0.886, 0.341, 0.204], [0.902, 0.365, 0.184], [0.918, 0.388, 0.165], [0.929, 0.412, 0.145], [0.941, 0.435, 0.125], [0.953, 0.463, 0.106], [0.961, 0.49, 0.082], [0.969, 0.518, 0.063], [0.976, 0.545, 0.043], [0.98, 0.58, 0.027], [0.984, 0.608, 0.024], [0.988, 0.639, 0.035], [0.988, 0.667, 0.059], [0.988, 0.698, 0.086], [0.984, 0.729, 0.122], [0.98, 0.761, 0.157], [0.976, 0.788, 0.196], [0.969, 0.82, 0.239], [0.961, 0.851, 0.286], [0.957, 0.882, 0.337], [0.949, 0.91, 0.396], [0.945, 0.937, 0.459], [0.953, 0.961, 0.525], [0.965, 0.98, 0.588], [0.988, 1, 0.643]] },
// ColorBrewer palettes
// http://colorbrewer2.org/
// https://observablehq.com/@d3/color-schemes
// sequential single-hue
"colorBrewerBlue": { values: [[0.969, 0.984, 1], [0.957, 0.976, 0.996], [0.945, 0.969, 0.992], [0.929, 0.961, 0.988], [0.918, 0.953, 0.984], [0.906, 0.945, 0.98], [0.894, 0.937, 0.976], [0.882, 0.929, 0.973], [0.871, 0.922, 0.969], [0.859, 0.914, 0.965], [0.847, 0.906, 0.961], [0.831, 0.898, 0.957], [0.82, 0.89, 0.953], [0.808, 0.882, 0.949], [0.792, 0.871, 0.941], [0.776, 0.863, 0.937], [0.761, 0.855, 0.933], [0.745, 0.847, 0.925], [0.729, 0.839, 0.922], [0.71, 0.831, 0.914], [0.69, 0.824, 0.906], [0.671, 0.812, 0.902], [0.647, 0.804, 0.894], [0.627, 0.792, 0.89], [0.604, 0.78, 0.882], [0.58, 0.769, 0.875], [0.557, 0.757, 0.871], [0.533, 0.745, 0.863], [0.51, 0.729, 0.859], [0.486, 0.718, 0.851], [0.463, 0.702, 0.847], [0.439, 0.69, 0.839], [0.416, 0.675, 0.831], [0.392, 0.663, 0.827], [0.373, 0.647, 0.82], [0.349, 0.631, 0.812], [0.329, 0.62, 0.804], [0.31, 0.604, 0.796], [0.29, 0.588, 0.788], [0.271, 0.576, 0.78], [0.251, 0.561, 0.773], [0.235, 0.545, 0.761], [0.216, 0.529, 0.753], [0.2, 0.514, 0.745], [0.184, 0.498, 0.737], [0.169, 0.478, 0.725], [0.153, 0.463, 0.718], [0.137, 0.447, 0.706], [0.125, 0.431, 0.698], [0.11, 0.416, 0.686], [0.098, 0.4, 0.675], [0.086, 0.384, 0.659], [0.075, 0.369, 0.647], [0.063, 0.353, 0.631], [0.055, 0.333, 0.616], [0.047, 0.318, 0.6], [0.043, 0.302, 0.58], [0.039, 0.286, 0.561], [0.035, 0.271, 0.537], [0.035, 0.255, 0.514], [0.031, 0.239, 0.49], [0.031, 0.22, 0.467], [0.031, 0.204, 0.443], [0.031, 0.188, 0.42]] },
"colorBrewerGreen": { values: [[0.969, 0.988, 0.961], [0.961, 0.984, 0.949], [0.949, 0.98, 0.941], [0.941, 0.976, 0.929], [0.933, 0.973, 0.918], [0.922, 0.969, 0.906], [0.91, 0.965, 0.894], [0.902, 0.961, 0.882], [0.89, 0.957, 0.871], [0.875, 0.953, 0.855], [0.863, 0.945, 0.843], [0.851, 0.941, 0.827], [0.835, 0.937, 0.812], [0.82, 0.929, 0.796], [0.804, 0.922, 0.78], [0.788, 0.918, 0.761], [0.773, 0.91, 0.745], [0.753, 0.902, 0.729], [0.737, 0.894, 0.71], [0.718, 0.886, 0.694], [0.698, 0.878, 0.675], [0.678, 0.871, 0.655], [0.659, 0.863, 0.639], [0.639, 0.855, 0.62], [0.62, 0.843, 0.6], [0.596, 0.835, 0.584], [0.576, 0.824, 0.565], [0.553, 0.816, 0.545], [0.533, 0.804, 0.529], [0.51, 0.792, 0.51], [0.486, 0.784, 0.494], [0.463, 0.773, 0.478], [0.439, 0.761, 0.463], [0.416, 0.749, 0.447], [0.392, 0.737, 0.435], [0.365, 0.725, 0.42], [0.341, 0.71, 0.408], [0.322, 0.698, 0.396], [0.298, 0.686, 0.38], [0.275, 0.671, 0.369], [0.255, 0.659, 0.357], [0.239, 0.643, 0.345], [0.22, 0.627, 0.333], [0.204, 0.612, 0.322], [0.184, 0.596, 0.31], [0.169, 0.58, 0.298], [0.153, 0.565, 0.286], [0.137, 0.549, 0.275], [0.122, 0.533, 0.259], [0.106, 0.518, 0.247], [0.09, 0.506, 0.235], [0.075, 0.49, 0.224], [0.059, 0.475, 0.212], [0.047, 0.455, 0.2], [0.035, 0.439, 0.188], [0.024, 0.424, 0.18], [0.016, 0.404, 0.169], [0.012, 0.384, 0.161], [0.004, 0.369, 0.149], [0.004, 0.349, 0.141], [0, 0.329, 0.133], [0, 0.306, 0.122], [0, 0.286, 0.114], [0, 0.267, 0.106]] },
"colorBrewerRed": { values: [[1, 0.961, 0.941], [1, 0.949, 0.925], [1, 0.941, 0.91], [1, 0.929, 0.894], [0.996, 0.918, 0.878], [0.996, 0.906, 0.863], [0.996, 0.894, 0.847], [0.996, 0.878, 0.827], [0.996, 0.867, 0.808], [0.996, 0.851, 0.788], [0.992, 0.835, 0.769], [0.992, 0.82, 0.745], [0.992, 0.8, 0.722], [0.992, 0.784, 0.698], [0.992, 0.765, 0.675], [0.988, 0.745, 0.651], [0.988, 0.725, 0.627], [0.988, 0.706, 0.604], [0.988, 0.686, 0.58], [0.988, 0.667, 0.557], [0.988, 0.647, 0.533], [0.988, 0.627, 0.51], [0.988, 0.608, 0.486], [0.988, 0.584, 0.467], [0.988, 0.565, 0.443], [0.988, 0.545, 0.424], [0.988, 0.525, 0.4], [0.984, 0.506, 0.38], [0.984, 0.486, 0.361], [0.984, 0.463, 0.341], [0.98, 0.443, 0.325], [0.98, 0.424, 0.306], [0.976, 0.4, 0.286], [0.973, 0.376, 0.271], [0.965, 0.357, 0.255], [0.961, 0.333, 0.239], [0.953, 0.31, 0.224], [0.945, 0.29, 0.212], [0.937, 0.267, 0.2], [0.925, 0.247, 0.188], [0.914, 0.227, 0.176], [0.902, 0.208, 0.165], [0.886, 0.188, 0.157], [0.871, 0.173, 0.149], [0.855, 0.153, 0.141], [0.835, 0.141, 0.133], [0.816, 0.125, 0.125], [0.8, 0.114, 0.122], [0.78, 0.102, 0.114], [0.761, 0.094, 0.11], [0.741, 0.086, 0.106], [0.722, 0.078, 0.098], [0.702, 0.075, 0.094], [0.682, 0.067, 0.09], [0.659, 0.063, 0.086], [0.635, 0.055, 0.082], [0.608, 0.051, 0.078], [0.58, 0.043, 0.075], [0.553, 0.035, 0.071], [0.525, 0.027, 0.067], [0.494, 0.024, 0.063], [0.467, 0.016, 0.059], [0.435, 0.008, 0.055], [0.404, 0, 0.051]] },
// sequential multi-hue
"colorBrewerYlGnBu": { values: [[1, 1, 0.851], [0.992, 0.996, 0.831], [0.98, 0.992, 0.812], [0.973, 0.988, 0.792], [0.961, 0.984, 0.776], [0.953, 0.98, 0.757], [0.941, 0.976, 0.745], [0.929, 0.973, 0.729], [0.914, 0.965, 0.722], [0.898, 0.961, 0.714], [0.882, 0.953, 0.71], [0.867, 0.949, 0.706], [0.847, 0.941, 0.702], [0.827, 0.933, 0.702], [0.804, 0.922, 0.706], [0.776, 0.914, 0.706], [0.753, 0.902, 0.71], [0.722, 0.89, 0.714], [0.69, 0.878, 0.714], [0.659, 0.867, 0.718], [0.627, 0.855, 0.722], [0.592, 0.843, 0.725], [0.561, 0.827, 0.729], [0.525, 0.816, 0.733], [0.49, 0.804, 0.737], [0.459, 0.788, 0.741], [0.427, 0.776, 0.745], [0.396, 0.765, 0.749], [0.365, 0.753, 0.753], [0.337, 0.741, 0.753], [0.31, 0.725, 0.757], [0.282, 0.714, 0.761], [0.259, 0.698, 0.761], [0.235, 0.682, 0.761], [0.216, 0.663, 0.761], [0.196, 0.647, 0.761], [0.18, 0.627, 0.757], [0.165, 0.608, 0.753], [0.153, 0.588, 0.749], [0.145, 0.569, 0.741], [0.137, 0.545, 0.733], [0.129, 0.522, 0.725], [0.129, 0.498, 0.718], [0.125, 0.475, 0.706], [0.125, 0.451, 0.698], [0.129, 0.427, 0.686], [0.129, 0.404, 0.675], [0.133, 0.38, 0.663], [0.133, 0.357, 0.655], [0.133, 0.333, 0.643], [0.137, 0.314, 0.631], [0.137, 0.294, 0.62], [0.137, 0.271, 0.608], [0.133, 0.255, 0.592], [0.129, 0.235, 0.576], [0.125, 0.22, 0.557], [0.118, 0.204, 0.537], [0.11, 0.188, 0.514], [0.098, 0.173, 0.486], [0.086, 0.161, 0.463], [0.075, 0.149, 0.431], [0.059, 0.137, 0.404], [0.047, 0.125, 0.376], [0.031, 0.114, 0.345]] },
"colorBrewerYlOrRd": { values: [[1, 1, 0.8], [1, 0.992, 0.776], [1, 0.98, 0.757], [1, 0.973, 0.733], [1, 0.965, 0.714], [1, 0.953, 0.69], [1, 0.945, 0.671], [1, 0.937, 0.647], [1, 0.925, 0.627], [1, 0.918, 0.604], [1, 0.906, 0.584], [1, 0.898, 0.561], [0.996, 0.886, 0.541], [0.996, 0.875, 0.522], [0.996, 0.863, 0.498], [0.996, 0.851, 0.478], [0.996, 0.835, 0.459], [0.996, 0.82, 0.435], [0.996, 0.804, 0.416], [0.996, 0.784, 0.396], [0.996, 0.769, 0.376], [0.996, 0.749, 0.357], [0.996, 0.729, 0.341], [0.996, 0.71, 0.325], [0.996, 0.694, 0.31], [0.996, 0.675, 0.298], [0.996, 0.655, 0.286], [0.996, 0.635, 0.275], [0.992, 0.616, 0.263], [0.992, 0.592, 0.255], [0.992, 0.573, 0.247], [0.992, 0.549, 0.239], [0.992, 0.522, 0.231], [0.992, 0.498, 0.22], [0.992, 0.471, 0.212], [0.988, 0.439, 0.204], [0.988, 0.412, 0.196], [0.984, 0.384, 0.188], [0.98, 0.353, 0.18], [0.976, 0.325, 0.169], [0.969, 0.294, 0.161], [0.961, 0.267, 0.153], [0.949, 0.239, 0.149], [0.941, 0.216, 0.141], [0.929, 0.188, 0.137], [0.914, 0.165, 0.129], [0.902, 0.145, 0.129], [0.886, 0.125, 0.125], [0.871, 0.106, 0.125], [0.851, 0.086, 0.125], [0.835, 0.071, 0.129], [0.816, 0.059, 0.129], [0.796, 0.047, 0.133], [0.776, 0.035, 0.137], [0.753, 0.024, 0.141], [0.729, 0.02, 0.141], [0.706, 0.012, 0.145], [0.678, 0.008, 0.145], [0.651, 0.004, 0.149], [0.62, 0.004, 0.149], [0.592, 0, 0.149], [0.561, 0, 0.149], [0.533, 0, 0.149], [0.502, 0, 0.149]] },
// diverging
"colorBrewerBrBG": { values: [[0.329, 0.188, 0.02], [0.365, 0.208, 0.024], [0.4, 0.231, 0.027], [0.435, 0.251, 0.031], [0.467, 0.275, 0.035], [0.502, 0.294, 0.043], [0.537, 0.322, 0.055], [0.569, 0.345, 0.067], [0.6, 0.373, 0.086], [0.631, 0.4, 0.106], [0.663, 0.431, 0.125], [0.694, 0.463, 0.153], [0.722, 0.498, 0.184], [0.745, 0.529, 0.22], [0.773, 0.569, 0.259], [0.792, 0.604, 0.302], [0.816, 0.643, 0.349], [0.835, 0.678, 0.396], [0.851, 0.714, 0.443], [0.871, 0.745, 0.49], [0.886, 0.776, 0.533], [0.902, 0.804, 0.58], [0.918, 0.831, 0.624], [0.929, 0.851, 0.667], [0.937, 0.875, 0.706], [0.949, 0.89, 0.745], [0.953, 0.906, 0.78], [0.957, 0.918, 0.816], [0.957, 0.929, 0.847], [0.957, 0.937, 0.875], [0.949, 0.941, 0.894], [0.937, 0.945, 0.91], [0.922, 0.945, 0.922], [0.906, 0.945, 0.925], [0.882, 0.941, 0.925], [0.855, 0.933, 0.922], [0.824, 0.925, 0.91], [0.792, 0.914, 0.898], [0.757, 0.902, 0.882], [0.718, 0.89, 0.863], [0.678, 0.875, 0.843], [0.635, 0.855, 0.824], [0.592, 0.835, 0.8], [0.549, 0.816, 0.776], [0.502, 0.788, 0.749], [0.459, 0.765, 0.722], [0.412, 0.733, 0.694], [0.369, 0.706, 0.667], [0.322, 0.675, 0.635], [0.278, 0.639, 0.604], [0.239, 0.608, 0.573], [0.2, 0.576, 0.541], [0.165, 0.545, 0.514], [0.129, 0.514, 0.482], [0.098, 0.482, 0.451], [0.071, 0.455, 0.42], [0.051, 0.424, 0.392], [0.031, 0.396, 0.361], [0.02, 0.369, 0.333], [0.012, 0.341, 0.302], [0.004, 0.314, 0.275], [0.004, 0.286, 0.247], [0, 0.263, 0.216], [0, 0.235, 0.188]] },
"colorBrewerRdYlGn": { values: [[0.647, 0, 0.149], [0.678, 0.031, 0.149], [0.71, 0.059, 0.149], [0.737, 0.09, 0.153], [0.769, 0.122, 0.157], [0.796, 0.153, 0.161], [0.824, 0.188, 0.169], [0.847, 0.22, 0.176], [0.867, 0.255, 0.188], [0.89, 0.294, 0.204], [0.906, 0.329, 0.22], [0.922, 0.369, 0.235], [0.937, 0.408, 0.255], [0.949, 0.447, 0.271], [0.957, 0.486, 0.29], [0.969, 0.525, 0.31], [0.973, 0.565, 0.329], [0.98, 0.604, 0.349], [0.984, 0.639, 0.369], [0.988, 0.675, 0.392], [0.988, 0.71, 0.412], [0.992, 0.745, 0.439], [0.992, 0.776, 0.463], [0.996, 0.808, 0.49], [0.996, 0.835, 0.518], [0.996, 0.863, 0.545], [0.996, 0.886, 0.576], [0.996, 0.91, 0.604], [0.996, 0.929, 0.631], [0.992, 0.945, 0.655], [0.988, 0.957, 0.671], [0.98, 0.965, 0.678], [0.969, 0.973, 0.678], [0.953, 0.973, 0.671], [0.933, 0.969, 0.655], [0.914, 0.961, 0.631], [0.89, 0.953, 0.608], [0.863, 0.941, 0.58], [0.835, 0.929, 0.553], [0.808, 0.918, 0.525], [0.78, 0.906, 0.506], [0.749, 0.894, 0.482], [0.714, 0.878, 0.463], [0.682, 0.863, 0.447], [0.647, 0.847, 0.435], [0.608, 0.831, 0.424], [0.573, 0.816, 0.412], [0.533, 0.8, 0.404], [0.494, 0.78, 0.396], [0.451, 0.765, 0.392], [0.408, 0.745, 0.384], [0.365, 0.722, 0.376], [0.322, 0.702, 0.365], [0.278, 0.678, 0.357], [0.235, 0.655, 0.345], [0.196, 0.631, 0.333], [0.157, 0.608, 0.318], [0.125, 0.58, 0.306], [0.098, 0.553, 0.29], [0.075, 0.525, 0.278], [0.051, 0.498, 0.263], [0.035, 0.467, 0.247], [0.016, 0.439, 0.231], [0, 0.408, 0.216]] },
"colorBrewerSpectral": { values: [[0.620,0.004,0.259],[0.835,0.243,0.310],[0.957,0.427,0.263],[0.992,0.682,0.380],[0.996,0.878,0.545],[1.000,1.000,0.749],[0.902,0.961,0.596],[0.671,0.867,0.643],[0.400,0.761,0.647],[0.196,0.533,0.741],[0.369,0.310,0.635] ] },
// categorical
"colorBrewerSet1": { type: 'categorical', values: [[0.894,0.102,0.110],[0.216,0.494,0.722],[0.302,0.686,0.290],[0.596,0.306,0.639],[1.000,0.498,0.000],[1.000,1.000,0.200],[0.651,0.337,0.157],[0.969,0.506,0.749],[0.600,0.600,0.600]] },
"colorBrewerSet2": { type: 'categorical', values: [[0.400,0.761,0.647],[0.988,0.553,0.384],[0.553,0.627,0.796],[0.906,0.541,0.765],[0.651,0.847,0.329],[1.000,0.851,0.184],[0.898,0.769,0.580],[0.702,0.702,0.702]] },
"colorBrewerSet3": { type: 'categorical', values: [[1,1,0.701], [0.745,0.729,0.854], [0.984,0.501,0.447], [0.501,0.694,0.827], [0.992,0.705,0.384], [0.701,0.870,0.411], [0.988,0.803,0.898], [0.850,0.850,0.850], [0.737,0.501,0.741], [0.8,0.921,0.772], [1,0.929,0.435]] },
"colorBrewerPastel1": { type: 'categorical', values: [[0.984,0.706,0.682],[0.702,0.804,0.890],[0.800,0.922,0.773],[0.871,0.796,0.894],[0.996,0.851,0.651],[1.000,1.000,0.800],[0.898,0.847,0.741],[0.992,0.855,0.925],[0.949,0.949,0.949]] },
"colorBrewerPaired": { type: 'categorical', values: [[0.651,0.808,0.89], [0.122,0.471,0.706], [0.698,0.875,0.541], [0.2,0.627,0.173], [0.984,0.604,0.6], [0.89,0.102,0.11], [0.992,0.749,0.435], [1,0.498,0], [0.792,0.698,0.839], [0.416,0.239,0.604], [1,1,0.6], [0.694,0.349,0.157]] },
// Misc
"temperature": {
values: function (value, alpha) {
const hsl = 240 - Math.round((1 - value) * 240);
return `hsla(${hsl}, 100%, 50%, ${alpha})`;
}
},
"red-purple-blue": {
values: function (value, alpha) {
const hsl = 240 + Math.round((1 - value) * 120);
return `hsla(${hsl}, 100%, 50%, ${alpha})`;
}
},
};