prismatica 1.0.0

308 scientific colormaps as compile-time Rust constants
Documentation
// Auto-generated by prismatica xtask -- do not edit
use crate::{Colormap, ColormapKind, ColormapMeta, DiscretePalette};

/// Pastel1 -- Qualitative colormap from the colorbrewer collection.
///
/// Author: Cynthia Brewer
/// Perceptually uniform: false
/// CVD friendly: false
///
/// Citation: Brewer, C. A. (2003). ColorBrewer. www.colorbrewer2.org
pub const PASTEL1: Colormap = Colormap {
    meta: ColormapMeta {
        name: "Pastel1",
        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: &PASTEL1_LUT,
};

static PASTEL1_LUT: [[u8; 3]; 256] = [
    [251, 180, 174],
    [249, 181, 176],
    [246, 182, 177],
    [244, 182, 179],
    [242, 183, 181],
    [240, 184, 182],
    [237, 185, 184],
    [235, 185, 186],
    [233, 186, 187],
    [231, 187, 189],
    [228, 188, 191],
    [226, 189, 192],
    [224, 189, 194],
    [222, 190, 196],
    [219, 191, 197],
    [217, 192, 199],
    [215, 193, 201],
    [213, 193, 202],
    [210, 194, 204],
    [208, 195, 206],
    [206, 196, 207],
    [204, 196, 209],
    [201, 197, 211],
    [199, 198, 212],
    [197, 199, 214],
    [195, 200, 216],
    [192, 200, 217],
    [190, 201, 219],
    [188, 202, 221],
    [185, 203, 222],
    [183, 204, 224],
    [181, 204, 226],
    [179, 205, 227],
    [180, 206, 226],
    [181, 207, 225],
    [181, 208, 224],
    [182, 209, 223],
    [183, 210, 222],
    [184, 211, 221],
    [185, 212, 220],
    [185, 213, 219],
    [186, 214, 218],
    [187, 215, 217],
    [188, 215, 217],
    [189, 216, 216],
    [189, 217, 215],
    [190, 218, 214],
    [191, 219, 213],
    [192, 220, 212],
    [192, 221, 211],
    [193, 222, 210],
    [194, 223, 209],
    [195, 224, 208],
    [196, 225, 207],
    [196, 226, 206],
    [197, 227, 205],
    [198, 228, 204],
    [199, 229, 203],
    [199, 230, 202],
    [200, 231, 201],
    [201, 231, 201],
    [202, 232, 200],
    [203, 233, 199],
    [203, 234, 198],
    [204, 235, 197],
    [205, 234, 198],
    [205, 233, 199],
    [206, 232, 200],
    [206, 231, 201],
    [207, 230, 202],
    [208, 229, 203],
    [208, 228, 204],
    [209, 227, 205],
    [209, 226, 206],
    [210, 225, 207],
    [210, 224, 208],
    [211, 223, 209],
    [211, 222, 210],
    [212, 221, 211],
    [213, 220, 212],
    [213, 219, 213],
    [214, 218, 214],
    [214, 217, 215],
    [215, 216, 216],
    [215, 215, 217],
    [216, 214, 218],
    [217, 213, 219],
    [217, 212, 220],
    [218, 211, 221],
    [218, 210, 222],
    [219, 209, 223],
    [219, 208, 224],
    [220, 207, 224],
    [221, 206, 225],
    [221, 205, 226],
    [222, 204, 227],
    [222, 203, 227],
    [223, 204, 225],
    [224, 204, 223],
    [225, 204, 221],
    [226, 205, 219],
    [227, 205, 218],
    [228, 206, 216],
    [229, 206, 214],
    [230, 207, 212],
    [231, 207, 210],
    [232, 208, 208],
    [233, 208, 206],
    [234, 208, 204],
    [235, 209, 202],
    [236, 209, 200],
    [237, 210, 198],
    [238, 210, 196],
    [239, 211, 194],
    [240, 211, 192],
    [241, 212, 190],
    [242, 212, 188],
    [243, 212, 186],
    [244, 213, 184],
    [245, 213, 183],
    [246, 214, 181],
    [247, 214, 179],
    [248, 215, 177],
    [249, 215, 175],
    [250, 215, 173],
    [251, 216, 171],
    [252, 216, 169],
    [253, 217, 167],
    [254, 218, 167],
    [254, 219, 168],
    [254, 220, 169],
    [254, 221, 170],
    [254, 222, 171],
    [254, 224, 173],
    [254, 225, 174],
    [254, 226, 175],
    [254, 227, 176],
    [254, 228, 177],
    [254, 230, 179],
    [254, 231, 180],
    [254, 232, 181],
    [254, 233, 182],
    [254, 234, 183],
    [254, 235, 184],
    [255, 237, 186],
    [255, 238, 187],
    [255, 239, 188],
    [255, 240, 189],
    [255, 241, 190],
    [255, 243, 192],
    [255, 244, 193],
    [255, 245, 194],
    [255, 246, 195],
    [255, 247, 196],
    [255, 249, 198],
    [255, 250, 199],
    [255, 251, 200],
    [255, 252, 201],
    [255, 253, 202],
    [255, 255, 204],
    [254, 254, 204],
    [254, 253, 203],
    [253, 252, 203],
    [252, 251, 202],
    [251, 249, 202],
    [250, 248, 201],
    [250, 247, 201],
    [249, 246, 200],
    [248, 244, 200],
    [247, 243, 199],
    [246, 242, 199],
    [246, 241, 199],
    [245, 240, 198],
    [244, 238, 198],
    [243, 237, 197],
    [242, 236, 197],
    [241, 235, 196],
    [241, 233, 196],
    [240, 232, 195],
    [239, 231, 195],
    [238, 230, 194],
    [237, 229, 194],
    [237, 227, 193],
    [236, 226, 193],
    [235, 225, 192],
    [234, 224, 192],
    [233, 222, 191],
    [232, 221, 191],
    [232, 220, 191],
    [231, 219, 190],
    [230, 218, 190],
    [229, 216, 189],
    [230, 216, 190],
    [230, 216, 192],
    [231, 216, 193],
    [232, 216, 195],
    [233, 216, 196],
    [233, 216, 197],
    [234, 216, 199],
    [235, 216, 200],
    [236, 217, 202],
    [236, 217, 203],
    [237, 217, 205],
    [238, 217, 206],
    [239, 217, 208],
    [239, 217, 209],
    [240, 217, 211],
    [241, 217, 212],
    [242, 217, 214],
    [242, 217, 215],
    [243, 217, 217],
    [244, 217, 218],
    [245, 217, 220],
    [245, 217, 221],
    [246, 217, 223],
    [247, 217, 224],
    [248, 218, 225],
    [248, 218, 227],
    [249, 218, 228],
    [250, 218, 230],
    [251, 218, 231],
    [251, 218, 233],
    [252, 218, 234],
    [253, 218, 236],
    [253, 219, 236],
    [252, 219, 236],
    [252, 220, 237],
    [252, 221, 237],
    [251, 222, 237],
    [251, 222, 237],
    [251, 223, 237],
    [250, 224, 237],
    [250, 225, 238],
    [250, 225, 238],
    [249, 226, 238],
    [249, 227, 238],
    [249, 228, 238],
    [248, 228, 239],
    [248, 229, 239],
    [248, 230, 239],
    [247, 231, 239],
    [247, 231, 239],
    [246, 232, 240],
    [246, 233, 240],
    [246, 234, 240],
    [245, 234, 240],
    [245, 235, 240],
    [245, 236, 240],
    [244, 237, 241],
    [244, 237, 241],
    [244, 238, 241],
    [243, 239, 241],
    [243, 240, 241],
    [243, 240, 242],
    [242, 241, 242],
    [242, 242, 242],
];

/// Original 9-color discrete palette.
pub const PASTEL1_PALETTE: DiscretePalette = DiscretePalette {
    meta: ColormapMeta {
        name: "Pastel1",
        collection: "colorbrewer",
        author: "Cynthia Brewer",
        kind: ColormapKind::Qualitative,
        perceptually_uniform: false,
        cvd_friendly: false,
        grayscale_safe: false,
        lut_size: 9,
        citation: "Brewer, C. A. (2003). ColorBrewer. www.colorbrewer2.org",
    },
    colors: &PASTEL1_PALETTE_COLORS,
};

static PASTEL1_PALETTE_COLORS: [[u8; 3]; 9] = [
    [251, 180, 174],
    [179, 205, 227],
    [204, 235, 197],
    [222, 203, 228],
    [254, 217, 166],
    [255, 255, 204],
    [229, 216, 189],
    [253, 218, 236],
    [242, 242, 242],
];