use crate::{Colormap, ColormapKind, ColormapMeta, DiscretePalette};
pub const PASTEL2: Colormap = Colormap {
meta: ColormapMeta {
name: "Pastel2",
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: &PASTEL2_LUT,
};
static PASTEL2_LUT: [[u8; 3]; 256] = [
[179, 226, 205],
[181, 225, 204],
[183, 225, 203],
[185, 224, 202],
[187, 224, 201],
[189, 223, 200],
[191, 223, 200],
[193, 222, 199],
[195, 221, 198],
[197, 221, 197],
[199, 220, 196],
[201, 220, 195],
[203, 219, 194],
[205, 219, 193],
[207, 218, 192],
[209, 217, 191],
[212, 217, 191],
[214, 216, 190],
[216, 216, 189],
[218, 215, 188],
[220, 214, 187],
[222, 214, 186],
[224, 213, 185],
[226, 213, 184],
[228, 212, 183],
[230, 212, 182],
[232, 211, 181],
[234, 210, 181],
[236, 210, 180],
[238, 209, 179],
[240, 209, 178],
[242, 208, 177],
[244, 208, 176],
[246, 207, 175],
[248, 206, 174],
[250, 206, 173],
[252, 205, 172],
[252, 205, 173],
[251, 205, 175],
[249, 206, 176],
[248, 206, 178],
[247, 206, 180],
[245, 206, 181],
[244, 206, 183],
[243, 207, 184],
[241, 207, 186],
[240, 207, 188],
[238, 207, 189],
[237, 208, 191],
[236, 208, 193],
[234, 208, 194],
[233, 208, 196],
[232, 208, 198],
[230, 209, 199],
[229, 209, 201],
[228, 209, 203],
[226, 209, 204],
[225, 210, 206],
[223, 210, 208],
[222, 210, 209],
[221, 210, 211],
[219, 210, 212],
[218, 211, 214],
[217, 211, 216],
[215, 211, 217],
[214, 211, 219],
[212, 211, 221],
[211, 212, 222],
[210, 212, 224],
[208, 212, 226],
[207, 212, 227],
[206, 213, 229],
[204, 213, 231],
[203, 213, 232],
[204, 213, 232],
[205, 212, 232],
[207, 212, 232],
[208, 212, 232],
[209, 211, 231],
[210, 211, 231],
[211, 211, 231],
[212, 211, 231],
[213, 210, 231],
[214, 210, 231],
[216, 210, 231],
[217, 209, 231],
[218, 209, 231],
[219, 209, 230],
[220, 208, 230],
[221, 208, 230],
[222, 208, 230],
[223, 208, 230],
[225, 207, 230],
[226, 207, 230],
[227, 207, 230],
[228, 206, 230],
[229, 206, 229],
[230, 206, 229],
[231, 205, 229],
[232, 205, 229],
[234, 205, 229],
[235, 205, 229],
[236, 204, 229],
[237, 204, 229],
[238, 204, 229],
[239, 203, 228],
[240, 203, 228],
[241, 203, 228],
[243, 202, 228],
[244, 202, 228],
[244, 203, 227],
[243, 204, 227],
[243, 205, 226],
[243, 206, 225],
[242, 208, 225],
[242, 209, 224],
[241, 210, 223],
[241, 211, 222],
[241, 212, 222],
[240, 213, 221],
[240, 215, 220],
[239, 216, 219],
[239, 217, 219],
[239, 218, 218],
[238, 219, 217],
[238, 221, 216],
[238, 222, 216],
[237, 223, 215],
[237, 224, 214],
[236, 225, 213],
[236, 226, 213],
[236, 228, 212],
[235, 229, 211],
[235, 230, 210],
[235, 231, 210],
[234, 232, 209],
[234, 234, 208],
[233, 235, 207],
[233, 236, 207],
[233, 237, 206],
[232, 238, 205],
[232, 239, 204],
[231, 241, 204],
[231, 242, 203],
[231, 243, 202],
[230, 244, 202],
[230, 245, 201],
[231, 245, 200],
[232, 245, 199],
[232, 245, 199],
[233, 245, 198],
[234, 245, 197],
[234, 244, 196],
[235, 244, 196],
[236, 244, 195],
[236, 244, 194],
[237, 244, 193],
[238, 244, 193],
[238, 244, 192],
[239, 244, 191],
[240, 244, 190],
[240, 244, 190],
[241, 244, 189],
[242, 244, 188],
[243, 243, 187],
[243, 243, 187],
[244, 243, 186],
[245, 243, 185],
[245, 243, 184],
[246, 243, 184],
[247, 243, 183],
[247, 243, 182],
[248, 243, 182],
[249, 243, 181],
[249, 243, 180],
[250, 243, 179],
[251, 243, 179],
[251, 242, 178],
[252, 242, 177],
[253, 242, 176],
[254, 242, 176],
[254, 242, 175],
[255, 242, 174],
[255, 242, 175],
[254, 241, 176],
[254, 241, 176],
[254, 240, 177],
[253, 240, 178],
[253, 239, 179],
[252, 239, 180],
[252, 239, 180],
[252, 238, 181],
[251, 238, 182],
[251, 237, 183],
[250, 237, 184],
[250, 236, 185],
[250, 236, 185],
[249, 235, 186],
[249, 235, 187],
[249, 235, 188],
[248, 234, 189],
[248, 234, 190],
[247, 233, 190],
[247, 233, 191],
[247, 232, 192],
[246, 232, 193],
[246, 232, 194],
[245, 231, 194],
[245, 231, 195],
[245, 230, 196],
[244, 230, 197],
[244, 229, 198],
[244, 229, 199],
[243, 228, 199],
[243, 228, 200],
[242, 228, 201],
[242, 227, 202],
[242, 227, 203],
[241, 226, 204],
[241, 226, 204],
[240, 225, 204],
[239, 225, 204],
[238, 224, 204],
[237, 223, 204],
[235, 223, 204],
[234, 222, 204],
[233, 222, 204],
[232, 221, 204],
[231, 220, 204],
[230, 220, 204],
[229, 219, 204],
[228, 218, 204],
[227, 218, 204],
[226, 217, 204],
[225, 217, 204],
[224, 216, 204],
[223, 215, 204],
[222, 215, 204],
[221, 214, 204],
[220, 214, 204],
[219, 213, 204],
[218, 212, 204],
[217, 212, 204],
[216, 211, 204],
[215, 211, 204],
[214, 210, 204],
[213, 209, 204],
[212, 209, 204],
[211, 208, 204],
[210, 208, 204],
[209, 207, 204],
[208, 206, 204],
[207, 206, 204],
[206, 205, 204],
[205, 205, 204],
[204, 204, 204],
];
pub const PASTEL2_PALETTE: DiscretePalette = DiscretePalette {
meta: ColormapMeta {
name: "Pastel2",
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: &PASTEL2_PALETTE_COLORS,
};
static PASTEL2_PALETTE_COLORS: [[u8; 3]; 8] = [
[179, 226, 205],
[253, 205, 172],
[203, 213, 232],
[244, 202, 228],
[230, 245, 201],
[255, 242, 174],
[241, 226, 204],
[204, 204, 204],
];