Commit 51a2313b authored by Anne Blankert's avatar Anne Blankert

add colors to classes

parent a47462c2
......@@ -18,7 +18,10 @@
flex-direction: column;
justify-content: space-between;
}
#feaureinfo {display: inline-block;}
#featureinfo {
display: inline-block;
max-width: 400px;
}
#attrinfo {
display: flex;
flex-wrap: wrap;
......@@ -31,10 +34,12 @@
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v1.2.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v1.2.0/mapbox-gl.css' rel='stylesheet' />
<link href='loader.css' rel='stylesheet' />
<script src="./colorbrewer.js"></script>
<script>
"use strict";
let map = null;
let globalStats = null;
function init() {
const urlParams = new URLSearchParams(window.location.search);
......@@ -74,6 +79,7 @@
})
}
graphStats(json)
globalStats = json;
})
.catch(err=>
attrInfoElement.innerHTML = `Failed to parse response, message: ${err.message}`
......@@ -81,16 +87,6 @@
})
}
function addLegendLine(color, label) {
const legend = document.querySelector('#legend');
const svg = `<svg width="30" height="15">
<rect width="30" height="15" style="fill:${color};fill-opacity:1;stroke-width:1;stroke:#444"></rect>
</svg>`
const legendLine = document.createElement('div');
legendLine.innerHTML = `<div><span>${svg}</span><span>${label}<span></div>`
legend.appendChild(legendLine);
}
function initMap()
{
const urlParams = new URLSearchParams(window.location.search);
......@@ -293,6 +289,88 @@
}
})
}
function addLegendLine(color, label) {
const legend = document.querySelector('#legend');
const svg = `<svg width="30" height="15">
<rect width="30" height="15" style="fill:${color};fill-opacity:1;stroke-width:1;stroke:#444"></rect>
</svg>`
const legendLine = document.createElement('div');
legendLine.innerHTML = `<div> <span>${svg}</span> <span>${label}<span></div>`
legend.appendChild(legendLine);
}
function prepareLegend() {
if (globalStats) {
document.querySelector('#legend').innerHTML = '';
return true;
}
let messageElem = document.querySelector('#legend.message');
if (messageElem) {
return false;
}
messageElem = document.createElement('div');
messageElem.classList.add('message');
messageElem.innerHTML = "waiting for stats, retry later...";
return false;
}
// legendTypes 'div', 'qual', 'seq'
// for diverging, qualitative and sequential legends
function getColorSchemes(numClasses, legendType) {
return colorbrewer.filter(scheme=>scheme.type===legendType && scheme.sets.length > numClasses - 3)
.map(scheme=>{
const result = scheme.sets[numClasses - 3];
result.name = scheme.name;
result.type = scheme.type;
return result;
});
}
function classButton(classType) {
if (prepareLegend()) {
const classCount = document.querySelector('#classcount').value;
if (classCount === 1) {
// special case, single classification
} else {
// classCount > 1
const rowCount = globalStats.percentiles.reduce((result, percentile)=>result + percentile.count, 0);
let classValues = globalStats.values.filter(value=>value.value !== null);
if (classValues.length > classCount) {
classValues = classValues.slice(0, classCount - 1);
const classValuesRowCount = classValues.reduce((result, value)=>result+value.count,0);
classValues.push({
value:"other",
count: rowCount - classValuesRowCount
})
const schemes = getColorSchemes(classCount, 'qual');
const mapboxPaint = {
"line-color": [
"match",
["get","bicycle"]
],
"line-width": 1
}
classValues.forEach((value, index) => {
addLegendLine(schemes[0].colors[index], value.value);
mapboxPaint["line-color"].push(value.value);
mapboxPaint["line-color"].push(schemes[0].colors[index]);
});
mapboxPaint["line-color"].push(schemes[0].colors[classValues.length -1]);
map.setPaintProperty('attrlayer', 'line-color', mapboxPaint["line-color"]);
}
}
const nullValues = globalStats.values.filter(value=>value.value === null).reduce((result, value)=>result+value.count,0);
const checkButtonNullValues = document.querySelector('#hidenulls')
if (nullValues) {
checkButtonNullValues.removeAttribute('disabled');
} else {
checkButtonNullValues.setAttribute('disabled', '')
}
}
}
</script>
</head>
......@@ -312,11 +390,23 @@
<div id="map"></div>
<div id="featurecontainer">
<div id="legendcontainer">
<select id="numclasses" name="numclasses">
<option>1</option>
<select id="classcount" name="classcount">
<option value="1" selected>1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select><label for="numclasses">number of classes</label><br>
<button>equal interval</button>
<button>quantile</button><br>
<button onclick="classButton('interval')">equal interval</button>
<button onclick="classButton('quantile')">quantile</button>
<button onclick="classButton('qualitative')">qualitative</button><br>
<input type="checkbox" id="hidenulls" name="hidenulls" checked><label for="hidenulls">Hide null values</label>
<div id="legend"></div>
</div>
......
// This product includes color specifications and designs developed by Cynthia Brewer (http://colorbrewer.org/).
// JavaScript specs as packaged in the D3 library (d3js.org). Please see license at http://colorbrewer.org/export/LICENSE.txt
// --
// generator described at end of file
const colorbrewer = [
{
"name": "Spectral",
"sets": [
{
"colors": [
"#fc8d59",
"#ffffbf",
"#99d594"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#d7191c",
"#fdae61",
"#abdda4",
"#2b83ba"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#d7191c",
"#fdae61",
"#ffffbf",
"#abdda4",
"#2b83ba"
],
"blind": "maybe",
"print": "ok",
"screen": "maybe",
"copy": "ok"
},
{
"colors": [
"#d53e4f",
"#fc8d59",
"#fee08b",
"#e6f598",
"#99d594",
"#3288bd"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#d53e4f",
"#fc8d59",
"#fee08b",
"#ffffbf",
"#e6f598",
"#99d594",
"#3288bd"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#d53e4f",
"#f46d43",
"#fdae61",
"#fee08b",
"#e6f598",
"#abdda4",
"#66c2a5",
"#3288bd"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#d53e4f",
"#f46d43",
"#fdae61",
"#fee08b",
"#ffffbf",
"#e6f598",
"#abdda4",
"#66c2a5",
"#3288bd"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#9e0142",
"#d53e4f",
"#f46d43",
"#fdae61",
"#fee08b",
"#e6f598",
"#abdda4",
"#66c2a5",
"#3288bd",
"#5e4fa2"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#9e0142",
"#d53e4f",
"#f46d43",
"#fdae61",
"#fee08b",
"#ffffbf",
"#e6f598",
"#abdda4",
"#66c2a5",
"#3288bd",
"#5e4fa2"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "div"
},
{
"name": "RdYlGn",
"sets": [
{
"colors": [
"#fc8d59",
"#ffffbf",
"#91cf60"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#d7191c",
"#fdae61",
"#a6d96a",
"#1a9641"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#d7191c",
"#fdae61",
"#ffffbf",
"#a6d96a",
"#1a9641"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#d73027",
"#fc8d59",
"#fee08b",
"#d9ef8b",
"#91cf60",
"#1a9850"
],
"blind": "bad",
"print": "maybe",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#d73027",
"#fc8d59",
"#fee08b",
"#ffffbf",
"#d9ef8b",
"#91cf60",
"#1a9850"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#d73027",
"#f46d43",
"#fdae61",
"#fee08b",
"#d9ef8b",
"#a6d96a",
"#66bd63",
"#1a9850"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#d73027",
"#f46d43",
"#fdae61",
"#fee08b",
"#ffffbf",
"#d9ef8b",
"#a6d96a",
"#66bd63",
"#1a9850"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#a50026",
"#d73027",
"#f46d43",
"#fdae61",
"#fee08b",
"#d9ef8b",
"#a6d96a",
"#66bd63",
"#1a9850",
"#006837"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#a50026",
"#d73027",
"#f46d43",
"#fdae61",
"#fee08b",
"#ffffbf",
"#d9ef8b",
"#a6d96a",
"#66bd63",
"#1a9850",
"#006837"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "div"
},
{
"name": "RdBu",
"sets": [
{
"colors": [
"#ef8a62",
"#f7f7f7",
"#67a9cf"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#ca0020",
"#f4a582",
"#92c5de",
"#0571b0"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#ca0020",
"#f4a582",
"#f7f7f7",
"#92c5de",
"#0571b0"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#b2182b",
"#ef8a62",
"#fddbc7",
"#d1e5f0",
"#67a9cf",
"#2166ac"
],
"blind": "ok",
"print": "ok",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#b2182b",
"#ef8a62",
"#fddbc7",
"#f7f7f7",
"#d1e5f0",
"#67a9cf",
"#2166ac"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#b2182b",
"#d6604d",
"#f4a582",
"#fddbc7",
"#d1e5f0",
"#92c5de",
"#4393c3",
"#2166ac"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#b2182b",
"#d6604d",
"#f4a582",
"#fddbc7",
"#f7f7f7",
"#d1e5f0",
"#92c5de",
"#4393c3",
"#2166ac"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#67001f",
"#b2182b",
"#d6604d",
"#f4a582",
"#fddbc7",
"#d1e5f0",
"#92c5de",
"#4393c3",
"#2166ac",
"#053061"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#67001f",
"#b2182b",
"#d6604d",
"#f4a582",
"#fddbc7",
"#f7f7f7",
"#d1e5f0",
"#92c5de",
"#4393c3",
"#2166ac",
"#053061"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "div"
},
{
"name": "PiYG",
"sets": [
{
"colors": [
"#e9a3c9",
"#f7f7f7",
"#a1d76a"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#d01c8b",
"#f1b6da",
"#b8e186",
"#4dac26"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#d01c8b",
"#f1b6da",
"#f7f7f7",
"#b8e186",
"#4dac26"
],
"blind": "ok",
"print": "maybe",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#c51b7d",
"#e9a3c9",
"#fde0ef",
"#e6f5d0",
"#a1d76a",
"#4d9221"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#c51b7d",
"#e9a3c9",
"#fde0ef",
"#f7f7f7",
"#e6f5d0",
"#a1d76a",
"#4d9221"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#c51b7d",
"#de77ae",
"#f1b6da",
"#fde0ef",
"#e6f5d0",
"#b8e186",
"#7fbc41",
"#4d9221"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#c51b7d",
"#de77ae",
"#f1b6da",
"#fde0ef",
"#f7f7f7",
"#e6f5d0",
"#b8e186",
"#7fbc41",
"#4d9221"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#8e0152",
"#c51b7d",
"#de77ae",
"#f1b6da",
"#fde0ef",
"#e6f5d0",
"#b8e186",
"#7fbc41",
"#4d9221",
"#276419"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#8e0152",
"#c51b7d",
"#de77ae",
"#f1b6da",
"#fde0ef",
"#f7f7f7",
"#e6f5d0",
"#b8e186",
"#7fbc41",
"#4d9221",
"#276419"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "div"
},
{
"name": "PRGn",
"sets": [
{
"colors": [
"#af8dc3",
"#f7f7f7",
"#7fbf7b"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#7b3294",
"#c2a5cf",
"#a6dba0",
"#008837"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#7b3294",
"#c2a5cf",
"#f7f7f7",
"#a6dba0",
"#008837"
],
"blind": "ok",
"print": "ok",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#762a83",
"#af8dc3",
"#e7d4e8",
"#d9f0d3",
"#7fbf7b",
"#1b7837"
],
"blind": "ok",
"print": "ok",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#762a83",
"#af8dc3",
"#e7d4e8",
"#f7f7f7",
"#d9f0d3",
"#7fbf7b",
"#1b7837"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#762a83",
"#9970ab",
"#c2a5cf",
"#e7d4e8",
"#d9f0d3",
"#a6dba0",
"#5aae61",
"#1b7837"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#762a83",
"#9970ab",
"#c2a5cf",
"#e7d4e8",
"#f7f7f7",
"#d9f0d3",
"#a6dba0",
"#5aae61",
"#1b7837"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#40004b",
"#762a83",
"#9970ab",
"#c2a5cf",
"#e7d4e8",
"#d9f0d3",
"#a6dba0",
"#5aae61",
"#1b7837",
"#00441b"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#40004b",
"#762a83",
"#9970ab",
"#c2a5cf",
"#e7d4e8",
"#f7f7f7",
"#d9f0d3",
"#a6dba0",
"#5aae61",
"#1b7837",
"#00441b"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "div"
},
{
"name": "RdYlBu",
"sets": [
{
"colors": [
"#fc8d59",
"#ffffbf",
"#91bfdb"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#d7191c",
"#fdae61",
"#abd9e9",
"#2c7bb6"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#d7191c",
"#fdae61",
"#ffffbf",
"#abd9e9",
"#2c7bb6"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#d73027",
"#fc8d59",
"#fee090",
"#e0f3f8",
"#91bfdb",
"#4575b4"
],
"blind": "ok",
"print": "ok",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#d73027",
"#fc8d59",
"#fee090",
"#ffffbf",
"#e0f3f8",
"#91bfdb",
"#4575b4"
],
"blind": "ok",
"print": "maybe",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#d73027",
"#f46d43",
"#fdae61",
"#fee090",
"#e0f3f8",
"#abd9e9",
"#74add1",
"#4575b4"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#d73027",
"#f46d43",
"#fdae61",
"#fee090",
"#ffffbf",
"#e0f3f8",
"#abd9e9",
"#74add1",
"#4575b4"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#a50026",
"#d73027",
"#f46d43",
"#fdae61",
"#fee090",
"#e0f3f8",
"#abd9e9",
"#74add1",
"#4575b4",
"#313695"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#a50026",
"#d73027",
"#f46d43",
"#fdae61",
"#fee090",
"#ffffbf",
"#e0f3f8",
"#abd9e9",
"#74add1",
"#4575b4",
"#313695"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "div"
},
{
"name": "BrBG",
"sets": [
{
"colors": [
"#d8b365",
"#f5f5f5",
"#5ab4ac"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#a6611a",
"#dfc27d",
"#80cdc1",
"#018571"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#a6611a",
"#dfc27d",
"#f5f5f5",
"#80cdc1",
"#018571"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#8c510a",
"#d8b365",
"#f6e8c3",
"#c7eae5",
"#5ab4ac",
"#01665e"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#8c510a",
"#d8b365",
"#f6e8c3",
"#f5f5f5",
"#c7eae5",
"#5ab4ac",
"#01665e"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#8c510a",
"#bf812d",
"#dfc27d",
"#f6e8c3",
"#c7eae5",
"#80cdc1",
"#35978f",
"#01665e"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#8c510a",
"#bf812d",
"#dfc27d",
"#f6e8c3",
"#f5f5f5",
"#c7eae5",
"#80cdc1",
"#35978f",
"#01665e"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#543005",
"#8c510a",
"#bf812d",
"#dfc27d",
"#f6e8c3",
"#c7eae5",
"#80cdc1",
"#35978f",
"#01665e",
"#003c30"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#543005",
"#8c510a",
"#bf812d",
"#dfc27d",
"#f6e8c3",
"#f5f5f5",
"#c7eae5",
"#80cdc1",
"#35978f",
"#01665e",
"#003c30"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "div"
},
{
"name": "RdGy",
"sets": [
{
"colors": [
"#ef8a62",
"#ffffff",
"#999999"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#ca0020",
"#f4a582",
"#bababa",
"#404040"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#ca0020",
"#f4a582",
"#ffffff",
"#bababa",
"#404040"
],
"blind": "maybe",
"print": "ok",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#b2182b",
"#ef8a62",
"#fddbc7",
"#e0e0e0",
"#999999",
"#4d4d4d"
],
"blind": "maybe",
"print": "maybe",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#b2182b",
"#ef8a62",
"#fddbc7",
"#ffffff",
"#e0e0e0",
"#999999",
"#4d4d4d"
],
"blind": "maybe",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#b2182b",
"#d6604d",
"#f4a582",
"#fddbc7",
"#e0e0e0",
"#bababa",
"#878787",
"#4d4d4d"
],
"blind": "maybe",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#b2182b",
"#d6604d",
"#f4a582",
"#fddbc7",
"#ffffff",
"#e0e0e0",
"#bababa",
"#878787",
"#4d4d4d"
],
"blind": "maybe",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#67001f",
"#b2182b",
"#d6604d",
"#f4a582",
"#fddbc7",
"#e0e0e0",
"#bababa",
"#878787",
"#4d4d4d",
"#1a1a1a"
],
"blind": "maybe",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#67001f",
"#b2182b",
"#d6604d",
"#f4a582",
"#fddbc7",
"#ffffff",
"#e0e0e0",
"#bababa",
"#878787",
"#4d4d4d",
"#1a1a1a"
],
"blind": "maybe",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "div"
},
{
"name": "PuOr",
"sets": [
{
"colors": [
"#f1a340",
"#f7f7f7",
"#998ec3"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#e66101",
"#fdb863",
"#b2abd2",
"#5e3c99"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#e66101",
"#fdb863",
"#f7f7f7",
"#b2abd2",
"#5e3c99"
],
"blind": "ok",
"print": "maybe",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#b35806",
"#f1a340",
"#fee0b6",
"#d8daeb",
"#998ec3",
"#542788"
],
"blind": "ok",
"print": "maybe",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#b35806",
"#f1a340",
"#fee0b6",
"#f7f7f7",
"#d8daeb",
"#998ec3",
"#542788"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#b35806",
"#e08214",
"#fdb863",
"#fee0b6",
"#d8daeb",
"#b2abd2",
"#8073ac",
"#542788"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#b35806",
"#e08214",
"#fdb863",
"#fee0b6",
"#f7f7f7",
"#d8daeb",
"#b2abd2",
"#8073ac",
"#542788"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#7f3b08",
"#b35806",
"#e08214",
"#fdb863",
"#fee0b6",
"#d8daeb",
"#b2abd2",
"#8073ac",
"#542788",
"#2d004b"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#7f3b08",
"#b35806",
"#e08214",
"#fdb863",
"#fee0b6",
"#f7f7f7",
"#d8daeb",
"#b2abd2",
"#8073ac",
"#542788",
"#2d004b"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "div"
},
{
"name": "Set2",
"sets": [
{
"colors": [
"#66c2a5",
"#fc8d62",
"#8da0cb"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#66c2a5",
"#fc8d62",
"#8da0cb",
"#e78ac3"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#66c2a5",
"#fc8d62",
"#8da0cb",
"#e78ac3",
"#a6d854"
],
"blind": "maybe",
"print": "ok",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#66c2a5",
"#fc8d62",
"#8da0cb",
"#e78ac3",
"#a6d854",
"#ffd92f"
],
"blind": "maybe",
"print": "maybe",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#66c2a5",
"#fc8d62",
"#8da0cb",
"#e78ac3",
"#a6d854",
"#ffd92f",
"#e5c494"
],
"blind": "bad",
"print": "maybe",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#66c2a5",
"#fc8d62",
"#8da0cb",
"#e78ac3",
"#a6d854",
"#ffd92f",
"#e5c494",
"#b3b3b3"
],
"blind": "bad",
"print": "maybe",
"screen": "maybe",
"copy": "bad"
}
],
"type": "qual"
},
{
"name": "Accent",
"sets": [
{
"colors": [
"#7fc97f",
"#beaed4",
"#fdc086"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#7fc97f",
"#beaed4",
"#fdc086",
"#ffff99"
],
"blind": "bad",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#7fc97f",
"#beaed4",
"#fdc086",
"#ffff99",
"#386cb0"
],
"blind": "bad",
"print": "maybe",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#7fc97f",
"#beaed4",
"#fdc086",
"#ffff99",
"#386cb0",
"#f0027f"
],
"blind": "bad",
"print": "maybe",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#7fc97f",
"#beaed4",
"#fdc086",
"#ffff99",
"#386cb0",
"#f0027f",
"#bf5b17"
],
"blind": "bad",
"print": "maybe",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#7fc97f",
"#beaed4",
"#fdc086",
"#ffff99",
"#386cb0",
"#f0027f",
"#bf5b17",
"#666666"
],
"blind": "bad",
"print": "maybe",
"screen": "maybe",
"copy": "bad"
}
],
"type": "qual"
},
{
"name": "Set1",
"sets": [
{
"colors": [
"#e41a1c",
"#377eb8",
"#4daf4a"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#e41a1c",
"#377eb8",
"#4daf4a",
"#984ea3"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#e41a1c",
"#377eb8",
"#4daf4a",
"#984ea3",
"#ff7f00"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#e41a1c",
"#377eb8",
"#4daf4a",
"#984ea3",
"#ff7f00",
"#ffff33"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#e41a1c",
"#377eb8",
"#4daf4a",
"#984ea3",
"#ff7f00",
"#ffff33",
"#a65628"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#e41a1c",
"#377eb8",
"#4daf4a",
"#984ea3",
"#ff7f00",
"#ffff33",
"#a65628",
"#f781bf"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#e41a1c",
"#377eb8",
"#4daf4a",
"#984ea3",
"#ff7f00",
"#ffff33",
"#a65628",
"#f781bf",
"#999999"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
}
],
"type": "qual"
},
{
"name": "Set3",
"sets": [
{
"colors": [
"#8dd3c7",
"#ffffb3",
"#bebada"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#8dd3c7",
"#ffffb3",
"#bebada",
"#fb8072"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "maybe"
},
{
"colors": [
"#8dd3c7",
"#ffffb3",
"#bebada",
"#fb8072",
"#80b1d3"
],
"blind": "bad",
"print": "ok",
"screen": "ok",
"copy": "maybe"
},
{
"colors": [
"#8dd3c7",
"#ffffb3",
"#bebada",
"#fb8072",
"#80b1d3",
"#fdb462"
],
"blind": "bad",
"print": "ok",
"screen": "maybe",
"copy": "maybe"
},
{
"colors": [
"#8dd3c7",
"#ffffb3",
"#bebada",
"#fb8072",
"#80b1d3",
"#fdb462",
"#b3de69"
],
"blind": "bad",
"print": "ok",
"screen": "maybe",
"copy": "maybe"
},
{
"colors": [
"#8dd3c7",
"#ffffb3",
"#bebada",
"#fb8072",
"#80b1d3",
"#fdb462",
"#b3de69",
"#fccde5"
],
"blind": "bad",
"print": "ok",
"screen": "maybe",
"copy": "maybe"
},
{
"colors": [
"#8dd3c7",
"#ffffb3",
"#bebada",
"#fb8072",
"#80b1d3",
"#fdb462",
"#b3de69",
"#fccde5",
"#d9d9d9"
],
"blind": "bad",
"print": "maybe",
"screen": "bad",
"copy": "maybe"
},
{
"colors": [
"#8dd3c7",
"#ffffb3",
"#bebada",
"#fb8072",
"#80b1d3",
"#fdb462",
"#b3de69",
"#fccde5",
"#d9d9d9",
"#bc80bd"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#8dd3c7",
"#ffffb3",
"#bebada",
"#fb8072",
"#80b1d3",
"#fdb462",
"#b3de69",
"#fccde5",
"#d9d9d9",
"#bc80bd",
"#ccebc5"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#8dd3c7",
"#ffffb3",
"#bebada",
"#fb8072",
"#80b1d3",
"#fdb462",
"#b3de69",
"#fccde5",
"#d9d9d9",
"#bc80bd",
"#ccebc5",
"#ffed6f"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "qual"
},
{
"name": "Dark2",
"sets": [
{
"colors": [
"#1b9e77",
"#d95f02",
"#7570b3"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#1b9e77",
"#d95f02",
"#7570b3",
"#e7298a"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#1b9e77",
"#d95f02",
"#7570b3",
"#e7298a",
"#66a61e"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#1b9e77",
"#d95f02",
"#7570b3",
"#e7298a",
"#66a61e",
"#e6ab02"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#1b9e77",
"#d95f02",
"#7570b3",
"#e7298a",
"#66a61e",
"#e6ab02",
"#a6761d"
],
"blind": "bad",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#1b9e77",
"#d95f02",
"#7570b3",
"#e7298a",
"#66a61e",
"#e6ab02",
"#a6761d",
"#666666"
],
"blind": "bad",
"print": "ok",
"screen": "ok",
"copy": "bad"
}
],
"type": "qual"
},
{
"name": "Paired",
"sets": [
{
"colors": [
"#a6cee3",
"#1f78b4",
"#b2df8a"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#a6cee3",
"#1f78b4",
"#b2df8a",
"#33a02c"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#a6cee3",
"#1f78b4",
"#b2df8a",
"#33a02c",
"#fb9a99"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#a6cee3",
"#1f78b4",
"#b2df8a",
"#33a02c",
"#fb9a99",
"#e31a1c"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#a6cee3",
"#1f78b4",
"#b2df8a",
"#33a02c",
"#fb9a99",
"#e31a1c",
"#fdbf6f"
],
"blind": "maybe",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#a6cee3",
"#1f78b4",
"#b2df8a",
"#33a02c",
"#fb9a99",
"#e31a1c",
"#fdbf6f",
"#ff7f00"
],
"blind": "maybe",
"print": "maybe",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#a6cee3",
"#1f78b4",
"#b2df8a",
"#33a02c",
"#fb9a99",
"#e31a1c",
"#fdbf6f",
"#ff7f00",
"#cab2d6"
],
"blind": "bad",
"print": "maybe",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#a6cee3",
"#1f78b4",
"#b2df8a",
"#33a02c",
"#fb9a99",
"#e31a1c",
"#fdbf6f",
"#ff7f00",
"#cab2d6",
"#6a3d9a"
],
"blind": "bad",
"print": "maybe",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#a6cee3",
"#1f78b4",
"#b2df8a",
"#33a02c",
"#fb9a99",
"#e31a1c",
"#fdbf6f",
"#ff7f00",
"#cab2d6",
"#6a3d9a",
"#ffff99"
],
"blind": "bad",
"print": "maybe",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#a6cee3",
"#1f78b4",
"#b2df8a",
"#33a02c",
"#fb9a99",
"#e31a1c",
"#fdbf6f",
"#ff7f00",
"#cab2d6",
"#6a3d9a",
"#ffff99",
"#b15928"
],
"copy": "bad"
}
],
"type": "qual"
},
{
"name": "Pastel2",
"sets": [
{
"colors": [
"#b3e2cd",
"#fdcdac",
"#cbd5e8"
],
"blind": "maybe",
"print": "maybe",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#b3e2cd",
"#fdcdac",
"#cbd5e8",
"#f4cae4"
],
"blind": "bad",
"print": "bad",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#b3e2cd",
"#fdcdac",
"#cbd5e8",
"#f4cae4",
"#e6f5c9"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#b3e2cd",
"#fdcdac",
"#cbd5e8",
"#f4cae4",
"#e6f5c9",
"#fff2ae"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#b3e2cd",
"#fdcdac",
"#cbd5e8",
"#f4cae4",
"#e6f5c9",
"#fff2ae",
"#f1e2cc"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#b3e2cd",
"#fdcdac",
"#cbd5e8",
"#f4cae4",
"#e6f5c9",
"#fff2ae",
"#f1e2cc",
"#cccccc"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "qual"
},
{
"name": "Pastel1",
"sets": [
{
"colors": [
"#fbb4ae",
"#b3cde3",
"#ccebc5"
],
"blind": "maybe",
"print": "maybe",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#fbb4ae",
"#b3cde3",
"#ccebc5",
"#decbe4"
],
"blind": "bad",
"print": "maybe",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#fbb4ae",
"#b3cde3",
"#ccebc5",
"#decbe4",
"#fed9a6"
],
"blind": "bad",
"print": "maybe",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#fbb4ae",
"#b3cde3",
"#ccebc5",
"#decbe4",
"#fed9a6",
"#ffffcc"
],
"blind": "bad",
"print": "bad",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#fbb4ae",
"#b3cde3",
"#ccebc5",
"#decbe4",
"#fed9a6",
"#ffffcc",
"#e5d8bd"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fbb4ae",
"#b3cde3",
"#ccebc5",
"#decbe4",
"#fed9a6",
"#ffffcc",
"#e5d8bd",
"#fddaec"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fbb4ae",
"#b3cde3",
"#ccebc5",
"#decbe4",
"#fed9a6",
"#ffffcc",
"#e5d8bd",
"#fddaec",
"#f2f2f2"
],
"blind": "bad",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "qual"
},
{
"name": "OrRd",
"sets": [
{
"colors": [
"#fee8c8",
"#fdbb84",
"#e34a33"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#fef0d9",
"#fdcc8a",
"#fc8d59",
"#d7301f"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#fef0d9",
"#fdcc8a",
"#fc8d59",
"#e34a33",
"#b30000"
],
"blind": "ok",
"print": "bad",
"screen": "ok",
"copy": "maybe"
},
{
"colors": [
"#fef0d9",
"#fdd49e",
"#fdbb84",
"#fc8d59",
"#e34a33",
"#b30000"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fef0d9",
"#fdd49e",
"#fdbb84",
"#fc8d59",
"#ef6548",
"#d7301f",
"#990000"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fff7ec",
"#fee8c8",
"#fdd49e",
"#fdbb84",
"#fc8d59",
"#ef6548",
"#d7301f",
"#990000"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fff7ec",
"#fee8c8",
"#fdd49e",
"#fdbb84",
"#fc8d59",
"#ef6548",
"#d7301f",
"#b30000",
"#7f0000"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "PuBu",
"sets": [
{
"colors": [
"#ece7f2",
"#a6bddb",
"#2b8cbe"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#f1eef6",
"#bdc9e1",
"#74a9cf",
"#0570b0"
],
"blind": "ok",
"print": "maybe",
"screen": "ok",
"copy": "maybe"
},
{
"colors": [
"#f1eef6",
"#bdc9e1",
"#74a9cf",
"#2b8cbe",
"#045a8d"
],
"blind": "ok",
"print": "maybe",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#f1eef6",
"#d0d1e6",
"#a6bddb",
"#74a9cf",
"#2b8cbe",
"#045a8d"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f1eef6",
"#d0d1e6",
"#a6bddb",
"#74a9cf",
"#3690c0",
"#0570b0",
"#034e7b"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fff7fb",
"#ece7f2",
"#d0d1e6",
"#a6bddb",
"#74a9cf",
"#3690c0",
"#0570b0",
"#034e7b"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fff7fb",
"#ece7f2",
"#d0d1e6",
"#a6bddb",
"#74a9cf",
"#3690c0",
"#0570b0",
"#045a8d",
"#023858"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "BuPu",
"sets": [
{
"colors": [
"#e0ecf4",
"#9ebcda",
"#8856a7"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#edf8fb",
"#b3cde3",
"#8c96c6",
"#88419d"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "maybe"
},
{
"colors": [
"#edf8fb",
"#b3cde3",
"#8c96c6",
"#8856a7",
"#810f7c"
],
"blind": "ok",
"print": "maybe",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#edf8fb",
"#bfd3e6",
"#9ebcda",
"#8c96c6",
"#8856a7",
"#810f7c"
],
"blind": "ok",
"print": "maybe",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#edf8fb",
"#bfd3e6",
"#9ebcda",
"#8c96c6",
"#8c6bb1",
"#88419d",
"#6e016b"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f7fcfd",
"#e0ecf4",
"#bfd3e6",
"#9ebcda",
"#8c96c6",
"#8c6bb1",
"#88419d",
"#6e016b"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f7fcfd",
"#e0ecf4",
"#bfd3e6",
"#9ebcda",
"#8c96c6",
"#8c6bb1",
"#88419d",
"#810f7c",
"#4d004b"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "Oranges",
"sets": [
{
"colors": [
"#fee6ce",
"#fdae6b",
"#e6550d"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#feedde",
"#fdbe85",
"#fd8d3c",
"#d94701"
],
"blind": "ok",
"print": "maybe",
"screen": "ok",
"copy": "maybe"
},
{
"colors": [
"#feedde",
"#fdbe85",
"#fd8d3c",
"#e6550d",
"#a63603"
],
"blind": "ok",
"print": "bad",
"screen": "ok",
"copy": "maybe"
},
{
"colors": [
"#feedde",
"#fdd0a2",
"#fdae6b",
"#fd8d3c",
"#e6550d",
"#a63603"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#feedde",
"#fdd0a2",
"#fdae6b",
"#fd8d3c",
"#f16913",
"#d94801",
"#8c2d04"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fff5eb",
"#fee6ce",
"#fdd0a2",
"#fdae6b",
"#fd8d3c",
"#f16913",
"#d94801",
"#8c2d04"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fff5eb",
"#fee6ce",
"#fdd0a2",
"#fdae6b",
"#fd8d3c",
"#f16913",
"#d94801",
"#a63603",
"#7f2704"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "BuGn",
"sets": [
{
"colors": [
"#e5f5f9",
"#99d8c9",
"#2ca25f"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#edf8fb",
"#b2e2e2",
"#66c2a4",
"#238b45"
],
"blind": "ok",
"print": "ok",
"screen": "maybe",
"copy": "maybe"
},
{
"colors": [
"#edf8fb",
"#b2e2e2",
"#66c2a4",
"#2ca25f",
"#006d2c"
],
"blind": "ok",
"print": "maybe",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#edf8fb",
"#ccece6",
"#99d8c9",
"#66c2a4",
"#2ca25f",
"#006d2c"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#edf8fb",
"#ccece6",
"#99d8c9",
"#66c2a4",
"#41ae76",
"#238b45",
"#005824"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f7fcfd",
"#e5f5f9",
"#ccece6",
"#99d8c9",
"#66c2a4",
"#41ae76",
"#238b45",
"#005824"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f7fcfd",
"#e5f5f9",
"#ccece6",
"#99d8c9",
"#66c2a4",
"#41ae76",
"#238b45",
"#006d2c",
"#00441b"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "YlOrBr",
"sets": [
{
"colors": [
"#fff7bc",
"#fec44f",
"#d95f0e"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#ffffd4",
"#fed98e",
"#fe9929",
"#cc4c02"
],
"blind": "ok",
"print": "ok",
"screen": "maybe",
"copy": "maybe"
},
{
"colors": [
"#ffffd4",
"#fed98e",
"#fe9929",
"#d95f0e",
"#993404"
],
"blind": "ok",
"print": "maybe",
"screen": "bad",
"copy": "maybe"
},
{
"colors": [
"#ffffd4",
"#fee391",
"#fec44f",
"#fe9929",
"#d95f0e",
"#993404"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#ffffd4",
"#fee391",
"#fec44f",
"#fe9929",
"#ec7014",
"#cc4c02",
"#8c2d04"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#ffffe5",
"#fff7bc",
"#fee391",
"#fec44f",
"#fe9929",
"#ec7014",
"#cc4c02",
"#8c2d04"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#ffffe5",
"#fff7bc",
"#fee391",
"#fec44f",
"#fe9929",
"#ec7014",
"#cc4c02",
"#993404",
"#662506"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "YlGn",
"sets": [
{
"colors": [
"#f7fcb9",
"#addd8e",
"#31a354"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#ffffcc",
"#c2e699",
"#78c679",
"#238443"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "maybe"
},
{
"colors": [
"#ffffcc",
"#c2e699",
"#78c679",
"#31a354",
"#006837"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#ffffcc",
"#d9f0a3",
"#addd8e",
"#78c679",
"#31a354",
"#006837"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#ffffcc",
"#d9f0a3",
"#addd8e",
"#78c679",
"#41ab5d",
"#238443",
"#005a32"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#ffffe5",
"#f7fcb9",
"#d9f0a3",
"#addd8e",
"#78c679",
"#41ab5d",
"#238443",
"#005a32"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#ffffe5",
"#f7fcb9",
"#d9f0a3",
"#addd8e",
"#78c679",
"#41ab5d",
"#238443",
"#006837",
"#004529"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "Reds",
"sets": [
{
"colors": [
"#fee0d2",
"#fc9272",
"#de2d26"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#fee5d9",
"#fcae91",
"#fb6a4a",
"#cb181d"
],
"blind": "ok",
"print": "maybe",
"screen": "maybe",
"copy": "maybe"
},
{
"colors": [
"#fee5d9",
"#fcae91",
"#fb6a4a",
"#de2d26",
"#a50f15"
],
"blind": "ok",
"print": "maybe",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fee5d9",
"#fcbba1",
"#fc9272",
"#fb6a4a",
"#de2d26",
"#a50f15"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fee5d9",
"#fcbba1",
"#fc9272",
"#fb6a4a",
"#ef3b2c",
"#cb181d",
"#99000d"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fff5f0",
"#fee0d2",
"#fcbba1",
"#fc9272",
"#fb6a4a",
"#ef3b2c",
"#cb181d",
"#99000d"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fff5f0",
"#fee0d2",
"#fcbba1",
"#fc9272",
"#fb6a4a",
"#ef3b2c",
"#cb181d",
"#a50f15",
"#67000d"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "RdPu",
"sets": [
{
"colors": [
"#fde0dd",
"#fa9fb5",
"#c51b8a"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#feebe2",
"#fbb4b9",
"#f768a1",
"#ae017e"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "maybe"
},
{
"colors": [
"#feebe2",
"#fbb4b9",
"#f768a1",
"#c51b8a",
"#7a0177"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#feebe2",
"#fcc5c0",
"#fa9fb5",
"#f768a1",
"#c51b8a",
"#7a0177"
],
"blind": "ok",
"print": "maybe",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#feebe2",
"#fcc5c0",
"#fa9fb5",
"#f768a1",
"#dd3497",
"#ae017e",
"#7a0177"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fff7f3",
"#fde0dd",
"#fcc5c0",
"#fa9fb5",
"#f768a1",
"#dd3497",
"#ae017e",
"#7a0177"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fff7f3",
"#fde0dd",
"#fcc5c0",
"#fa9fb5",
"#f768a1",
"#dd3497",
"#ae017e",
"#7a0177",
"#49006a"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "Greens",
"sets": [
{
"colors": [
"#e5f5e0",
"#a1d99b",
"#31a354"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#edf8e9",
"#bae4b3",
"#74c476",
"#238b45"
],
"blind": "ok",
"print": "bad",
"screen": "maybe",
"copy": "maybe"
},
{
"colors": [
"#edf8e9",
"#bae4b3",
"#74c476",
"#31a354",
"#006d2c"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#edf8e9",
"#c7e9c0",
"#a1d99b",
"#74c476",
"#31a354",
"#006d2c"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#edf8e9",
"#c7e9c0",
"#a1d99b",
"#74c476",
"#41ab5d",
"#238b45",
"#005a32"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f7fcf5",
"#e5f5e0",
"#c7e9c0",
"#a1d99b",
"#74c476",
"#41ab5d",
"#238b45",
"#005a32"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f7fcf5",
"#e5f5e0",
"#c7e9c0",
"#a1d99b",
"#74c476",
"#41ab5d",
"#238b45",
"#006d2c",
"#00441b"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "YlGnBu",
"sets": [
{
"colors": [
"#edf8b1",
"#7fcdbb",
"#2c7fb8"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#ffffcc",
"#a1dab4",
"#41b6c4",
"#225ea8"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "maybe"
},
{
"colors": [
"#ffffcc",
"#a1dab4",
"#41b6c4",
"#2c7fb8",
"#253494"
],
"blind": "ok",
"print": "ok",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#ffffcc",
"#c7e9b4",
"#7fcdbb",
"#41b6c4",
"#2c7fb8",
"#253494"
],
"blind": "ok",
"print": "maybe",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#ffffcc",
"#c7e9b4",
"#7fcdbb",
"#41b6c4",
"#1d91c0",
"#225ea8",
"#0c2c84"
],
"blind": "ok",
"print": "maybe",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#ffffd9",
"#edf8b1",
"#c7e9b4",
"#7fcdbb",
"#41b6c4",
"#1d91c0",
"#225ea8",
"#0c2c84"
],
"blind": "ok",
"print": "maybe",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#ffffd9",
"#edf8b1",
"#c7e9b4",
"#7fcdbb",
"#41b6c4",
"#1d91c0",
"#225ea8",
"#253494",
"#081d58"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "Purples",
"sets": [
{
"colors": [
"#efedf5",
"#bcbddc",
"#756bb1"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#f2f0f7",
"#cbc9e2",
"#9e9ac8",
"#6a51a3"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "maybe"
},
{
"colors": [
"#f2f0f7",
"#cbc9e2",
"#9e9ac8",
"#756bb1",
"#54278f"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f2f0f7",
"#dadaeb",
"#bcbddc",
"#9e9ac8",
"#756bb1",
"#54278f"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f2f0f7",
"#dadaeb",
"#bcbddc",
"#9e9ac8",
"#807dba",
"#6a51a3",
"#4a1486"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fcfbfd",
"#efedf5",
"#dadaeb",
"#bcbddc",
"#9e9ac8",
"#807dba",
"#6a51a3",
"#4a1486"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fcfbfd",
"#efedf5",
"#dadaeb",
"#bcbddc",
"#9e9ac8",
"#807dba",
"#6a51a3",
"#54278f",
"#3f007d"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "GnBu",
"sets": [
{
"colors": [
"#e0f3db",
"#a8ddb5",
"#43a2ca"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#f0f9e8",
"#bae4bc",
"#7bccc4",
"#2b8cbe"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "maybe"
},
{
"colors": [
"#f0f9e8",
"#bae4bc",
"#7bccc4",
"#43a2ca",
"#0868ac"
],
"blind": "ok",
"print": "ok",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#f0f9e8",
"#ccebc5",
"#a8ddb5",
"#7bccc4",
"#43a2ca",
"#0868ac"
],
"blind": "ok",
"print": "maybe",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f0f9e8",
"#ccebc5",
"#a8ddb5",
"#7bccc4",
"#4eb3d3",
"#2b8cbe",
"#08589e"
],
"blind": "ok",
"print": "maybe",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f7fcf0",
"#e0f3db",
"#ccebc5",
"#a8ddb5",
"#7bccc4",
"#4eb3d3",
"#2b8cbe",
"#08589e"
],
"blind": "ok",
"print": "maybe",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f7fcf0",
"#e0f3db",
"#ccebc5",
"#a8ddb5",
"#7bccc4",
"#4eb3d3",
"#2b8cbe",
"#0868ac",
"#084081"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "Greys",
"sets": [
{
"colors": [
"#f0f0f0",
"#bdbdbd",
"#636363"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#f7f7f7",
"#cccccc",
"#969696",
"#525252"
],
"blind": "ok",
"print": "ok",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#f7f7f7",
"#cccccc",
"#969696",
"#636363",
"#252525"
],
"blind": "ok",
"print": "maybe",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f7f7f7",
"#d9d9d9",
"#bdbdbd",
"#969696",
"#636363",
"#252525"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f7f7f7",
"#d9d9d9",
"#bdbdbd",
"#969696",
"#737373",
"#525252",
"#252525"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#ffffff",
"#f0f0f0",
"#d9d9d9",
"#bdbdbd",
"#969696",
"#737373",
"#525252",
"#252525"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#ffffff",
"#f0f0f0",
"#d9d9d9",
"#bdbdbd",
"#969696",
"#737373",
"#525252",
"#252525",
"#000000"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "YlOrRd",
"sets": [
{
"colors": [
"#ffeda0",
"#feb24c",
"#f03b20"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#ffffb2",
"#fecc5c",
"#fd8d3c",
"#e31a1c"
],
"blind": "ok",
"print": "ok",
"screen": "maybe",
"copy": "maybe"
},
{
"colors": [
"#ffffb2",
"#fecc5c",
"#fd8d3c",
"#f03b20",
"#bd0026"
],
"blind": "ok",
"print": "maybe",
"screen": "maybe",
"copy": "maybe"
},
{
"colors": [
"#ffffb2",
"#fed976",
"#feb24c",
"#fd8d3c",
"#f03b20",
"#bd0026"
],
"blind": "ok",
"print": "maybe",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#ffffb2",
"#fed976",
"#feb24c",
"#fd8d3c",
"#fc4e2a",
"#e31a1c",
"#b10026"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#ffffcc",
"#ffeda0",
"#fed976",
"#feb24c",
"#fd8d3c",
"#fc4e2a",
"#e31a1c",
"#b10026"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#ffffcc",
"#ffeda0",
"#fed976",
"#feb24c",
"#fd8d3c",
"#fc4e2a",
"#e31a1c",
"#bd0026",
"#800026"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "PuRd",
"sets": [
{
"colors": [
"#e7e1ef",
"#c994c7",
"#dd1c77"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#f1eef6",
"#d7b5d8",
"#df65b0",
"#ce1256"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "maybe"
},
{
"colors": [
"#f1eef6",
"#d7b5d8",
"#df65b0",
"#dd1c77",
"#980043"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "bad"
},
{
"colors": [
"#f1eef6",
"#d4b9da",
"#c994c7",
"#df65b0",
"#dd1c77",
"#980043"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f1eef6",
"#d4b9da",
"#c994c7",
"#df65b0",
"#e7298a",
"#ce1256",
"#91003f"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f7f4f9",
"#e7e1ef",
"#d4b9da",
"#c994c7",
"#df65b0",
"#e7298a",
"#ce1256",
"#91003f"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f7f4f9",
"#e7e1ef",
"#d4b9da",
"#c994c7",
"#df65b0",
"#e7298a",
"#ce1256",
"#980043",
"#67001f"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "Blues",
"sets": [
{
"colors": [
"#deebf7",
"#9ecae1",
"#3182bd"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#eff3ff",
"#bdd7e7",
"#6baed6",
"#2171b5"
],
"blind": "ok",
"print": "maybe",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#eff3ff",
"#bdd7e7",
"#6baed6",
"#3182bd",
"#08519c"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#eff3ff",
"#c6dbef",
"#9ecae1",
"#6baed6",
"#3182bd",
"#08519c"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#eff3ff",
"#c6dbef",
"#9ecae1",
"#6baed6",
"#4292c6",
"#2171b5",
"#084594"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f7fbff",
"#deebf7",
"#c6dbef",
"#9ecae1",
"#6baed6",
"#4292c6",
"#2171b5",
"#084594"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f7fbff",
"#deebf7",
"#c6dbef",
"#9ecae1",
"#6baed6",
"#4292c6",
"#2171b5",
"#08519c",
"#08306b"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
},
{
"name": "PuBuGn",
"sets": [
{
"colors": [
"#ece2f0",
"#a6bddb",
"#1c9099"
],
"blind": "ok",
"print": "ok",
"screen": "ok",
"copy": "ok"
},
{
"colors": [
"#f6eff7",
"#bdc9e1",
"#67a9cf",
"#02818a"
],
"blind": "ok",
"print": "maybe",
"screen": "ok",
"copy": "maybe"
},
{
"colors": [
"#f6eff7",
"#bdc9e1",
"#67a9cf",
"#1c9099",
"#016c59"
],
"blind": "ok",
"print": "maybe",
"screen": "maybe",
"copy": "bad"
},
{
"colors": [
"#f6eff7",
"#d0d1e6",
"#a6bddb",
"#67a9cf",
"#1c9099",
"#016c59"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#f6eff7",
"#d0d1e6",
"#a6bddb",
"#67a9cf",
"#3690c0",
"#02818a",
"#016450"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fff7fb",
"#ece2f0",
"#d0d1e6",
"#a6bddb",
"#67a9cf",
"#3690c0",
"#02818a",
"#016450"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
},
{
"colors": [
"#fff7fb",
"#ece2f0",
"#d0d1e6",
"#a6bddb",
"#67a9cf",
"#3690c0",
"#02818a",
"#016c59",
"#014636"
],
"blind": "ok",
"print": "bad",
"screen": "bad",
"copy": "bad"
}
],
"type": "seq"
}
];
//export default colorbrewer;
/* generated with Nodejs
// get colorbrewer definition from http://colorbrewer2.org/colorbrewer_schemes.js,
// append code below,
// run code with Node
let stdout = process.stdout;
const result = [];
for (let key in colorbrewer) {
const color = {name: key, sets: []}
color.type = colorbrewer[key].properties.type;
for (property in colorbrewer[key]) {
if (property != 'properties') {
color.sets.push({colors:colorbrewer[key][property].map(color=>tinycolor(color).toHexString())});
}
}
if (colorbrewer[key].properties.blind.length > 1) {
colorbrewer[key].properties.blind.forEach((prop, index)=>{if (index < color.sets.length) {color.sets[index].blind=prop===0?"bad":prop===1?"ok":"maybe"}});
} else {
const value = colorbrewer[key].properties.blind[0];
color.sets.forEach(set=>set.blind=value===0?"bad":value===1?"ok":"maybe");
}
if (colorbrewer[key].properties.print.length > 1) {
colorbrewer[key].properties.print.forEach((prop, index)=>{if (index < color.sets.length) {color.sets[index].print=prop===0?"bad":prop===1?"ok":"maybe"}});
} else {
const value = colorbrewer[key].properties.print[0];
color.sets.forEach(set=>set.print=value===0?"bad":value===1?"ok":"maybe");
}
if (colorbrewer[key].properties.screen.length > 1) {
colorbrewer[key].properties.screen.forEach((prop, index)=>{if (index < color.sets.length) {color.sets[index].screen=prop===0?"bad":prop===1?"ok":"maybe"}});
} else {
const value = colorbrewer[key].properties.screen[0];
color.sets.forEach(set=>set.screen=value===0?"bad":value===1?"ok":"maybe");
}
if (colorbrewer[key].properties.copy.length > 1) {
colorbrewer[key].properties.copy.forEach((prop, index)=>{if (index < color.sets.length) {color.sets[index].copy=prop===0?"bad":prop===1?"ok":"maybe"}});
} else {
const value = colorbrewer[key].properties.copy[0];
color.sets.forEach(set=>set.copy=value===0?"bad":value===1?"ok":"maybe");
}
result.push(color);
}
stdout.write(JSON.stringify(result, null, 2));
*/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment