use crate::{Colormap, ColormapKind, ColormapMeta, DiscretePalette};
pub const ACCENT: Colormap = Colormap {
meta: ColormapMeta {
name: "Accent",
collection: "colorbrewer",
author: "Cynthia Brewer",
kind: ColormapKind::Qualitative,
perceptually_uniform: false,
cvd_friendly: false,
grayscale_safe: false,
lut_size: 256,
citation: "Brewer, C. A. (2003). ColorBrewer. www.colorbrewer2.org",
},
lut: &ACCENT_LUT,
};
static ACCENT_LUT: [[u8; 3]; 256] = [
[127, 201, 127],
[129, 200, 129],
[130, 200, 132],
[132, 199, 134],
[134, 198, 136],
[136, 197, 139],
[137, 197, 141],
[139, 196, 143],
[141, 195, 146],
[143, 194, 148],
[144, 194, 150],
[146, 193, 153],
[148, 192, 155],
[149, 191, 157],
[151, 191, 160],
[153, 190, 162],
[155, 189, 164],
[156, 188, 167],
[158, 188, 169],
[160, 187, 171],
[162, 186, 174],
[163, 185, 176],
[165, 185, 178],
[167, 184, 181],
[169, 183, 183],
[170, 182, 185],
[172, 182, 188],
[174, 181, 190],
[175, 180, 192],
[177, 180, 195],
[179, 179, 197],
[181, 178, 199],
[182, 177, 202],
[184, 177, 204],
[186, 176, 206],
[188, 175, 209],
[189, 174, 211],
[191, 174, 211],
[193, 175, 209],
[194, 175, 206],
[196, 176, 204],
[198, 176, 202],
[200, 177, 200],
[201, 177, 198],
[203, 178, 196],
[205, 178, 194],
[207, 179, 192],
[208, 179, 189],
[210, 180, 187],
[212, 180, 185],
[213, 181, 183],
[215, 181, 181],
[217, 182, 179],
[219, 182, 177],
[220, 183, 174],
[222, 183, 172],
[224, 184, 170],
[226, 184, 168],
[227, 185, 166],
[229, 185, 164],
[231, 186, 162],
[232, 186, 159],
[234, 187, 157],
[236, 187, 155],
[238, 188, 153],
[239, 188, 151],
[241, 189, 149],
[243, 189, 147],
[245, 190, 144],
[246, 190, 142],
[248, 191, 140],
[250, 191, 138],
[252, 192, 136],
[253, 192, 134],
[253, 194, 135],
[253, 196, 135],
[253, 197, 136],
[253, 199, 136],
[253, 201, 137],
[253, 203, 137],
[253, 204, 138],
[253, 206, 138],
[254, 208, 139],
[254, 210, 139],
[254, 211, 140],
[254, 213, 140],
[254, 215, 141],
[254, 216, 141],
[254, 218, 142],
[254, 220, 142],
[254, 222, 143],
[254, 223, 143],
[254, 225, 144],
[254, 227, 145],
[254, 229, 145],
[254, 230, 146],
[254, 232, 146],
[254, 234, 147],
[254, 235, 147],
[254, 237, 148],
[254, 239, 148],
[255, 241, 149],
[255, 242, 149],
[255, 244, 150],
[255, 246, 150],
[255, 248, 151],
[255, 249, 151],
[255, 251, 152],
[255, 253, 152],
[255, 255, 153],
[251, 252, 153],
[246, 248, 154],
[240, 244, 155],
[235, 240, 155],
[229, 236, 156],
[224, 232, 157],
[218, 228, 157],
[213, 224, 158],
[207, 220, 159],
[202, 216, 159],
[196, 212, 160],
[191, 208, 160],
[186, 204, 161],
[180, 200, 162],
[175, 196, 162],
[169, 192, 163],
[164, 188, 164],
[158, 184, 164],
[153, 179, 165],
[147, 175, 165],
[142, 171, 166],
[136, 167, 167],
[131, 163, 167],
[125, 159, 168],
[120, 155, 169],
[115, 151, 169],
[109, 147, 170],
[104, 143, 170],
[98, 139, 171],
[93, 135, 172],
[87, 131, 172],
[82, 127, 173],
[76, 123, 174],
[71, 119, 174],
[65, 115, 175],
[60, 111, 176],
[57, 107, 176],
[62, 104, 174],
[68, 101, 173],
[73, 98, 172],
[78, 96, 170],
[83, 93, 169],
[88, 90, 168],
[93, 87, 166],
[98, 84, 165],
[103, 81, 164],
[108, 78, 162],
[113, 75, 161],
[118, 72, 159],
[123, 69, 158],
[128, 66, 157],
[133, 64, 155],
[138, 61, 154],
[143, 58, 153],
[148, 55, 151],
[153, 52, 150],
[158, 49, 149],
[164, 46, 147],
[169, 43, 146],
[174, 40, 145],
[179, 37, 143],
[184, 34, 142],
[189, 32, 141],
[194, 29, 139],
[199, 26, 138],
[204, 23, 137],
[209, 20, 135],
[214, 17, 134],
[219, 14, 133],
[224, 11, 131],
[229, 8, 130],
[234, 5, 129],
[239, 2, 127],
[239, 4, 125],
[238, 7, 122],
[236, 9, 119],
[235, 11, 116],
[233, 14, 113],
[232, 16, 110],
[231, 19, 107],
[229, 21, 105],
[228, 24, 102],
[227, 26, 99],
[225, 29, 96],
[224, 31, 93],
[223, 33, 90],
[221, 36, 87],
[220, 38, 85],
[219, 41, 82],
[217, 43, 79],
[216, 46, 76],
[215, 48, 73],
[213, 51, 70],
[212, 53, 67],
[211, 55, 65],
[209, 58, 62],
[208, 60, 59],
[207, 63, 56],
[205, 65, 53],
[204, 68, 50],
[203, 70, 47],
[201, 73, 45],
[200, 75, 42],
[198, 77, 39],
[197, 80, 36],
[196, 82, 33],
[194, 85, 30],
[193, 87, 27],
[192, 90, 25],
[190, 91, 24],
[188, 91, 26],
[185, 92, 28],
[183, 92, 30],
[180, 92, 33],
[178, 93, 35],
[175, 93, 37],
[173, 93, 39],
[170, 94, 41],
[168, 94, 43],
[166, 94, 46],
[163, 94, 48],
[161, 95, 50],
[158, 95, 52],
[156, 95, 54],
[153, 96, 56],
[151, 96, 59],
[148, 96, 61],
[146, 97, 63],
[144, 97, 65],
[141, 97, 67],
[139, 97, 69],
[136, 98, 72],
[134, 98, 74],
[131, 98, 76],
[129, 99, 78],
[126, 99, 80],
[124, 99, 82],
[122, 100, 85],
[119, 100, 87],
[117, 100, 89],
[114, 100, 91],
[112, 101, 93],
[109, 101, 95],
[107, 101, 98],
[104, 102, 100],
[102, 102, 102],
];
pub const ACCENT_PALETTE: DiscretePalette = DiscretePalette {
meta: ColormapMeta {
name: "Accent",
collection: "colorbrewer",
author: "Cynthia Brewer",
kind: ColormapKind::Qualitative,
perceptually_uniform: false,
cvd_friendly: false,
grayscale_safe: false,
lut_size: 8,
citation: "Brewer, C. A. (2003). ColorBrewer. www.colorbrewer2.org",
},
colors: &ACCENT_PALETTE_COLORS,
};
static ACCENT_PALETTE_COLORS: [[u8; 3]; 8] = [
[127, 201, 127],
[190, 174, 212],
[253, 192, 134],
[255, 255, 153],
[56, 108, 176],
[240, 2, 127],
[191, 91, 23],
[102, 102, 102],
];