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};

/// YlOrBr -- Sequential colormap from the colorbrewer collection.
///
/// Author: Cynthia Brewer
/// Perceptually uniform: true
/// CVD friendly: false
///
/// Citation: Brewer, C. A. (2003). ColorBrewer. www.colorbrewer2.org
pub const YLORBR: Colormap = Colormap {
    meta: ColormapMeta {
        name: "YlOrBr",
        collection: "colorbrewer",
        author: "Cynthia Brewer",
        kind: ColormapKind::Sequential,
        perceptually_uniform: true,
        cvd_friendly: false,
        grayscale_safe: false,
        lut_size: 256,
        citation: "Brewer, C. A. (2003). ColorBrewer. www.colorbrewer2.org",
    },
    lut: &YLORBR_LUT,
};

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

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

static YLORBR_PALETTE_COLORS: [[u8; 3]; 9] = [
    [255, 255, 229],
    [255, 247, 188],
    [254, 227, 145],
    [254, 196, 79],
    [254, 153, 41],
    [236, 112, 20],
    [204, 76, 2],
    [153, 52, 4],
    [102, 37, 6],
];