prismatica 0.3.1

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

/// OrRd -- 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 ORRD: Colormap = Colormap {
    meta: ColormapMeta {
        name: "OrRd",
        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: &ORRD_LUT,
};

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

/// Original 9-color discrete palette.
pub const ORRD_PALETTE: DiscretePalette = DiscretePalette {
    meta: ColormapMeta {
        name: "OrRd",
        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: &ORRD_PALETTE_COLORS,
};

static ORRD_PALETTE_COLORS: [[u8; 3]; 9] = [
    [255, 247, 236],
    [254, 232, 200],
    [253, 212, 158],
    [253, 187, 132],
    [252, 141, 89],
    [239, 101, 72],
    [215, 48, 31],
    [179, 0, 0],
    [127, 0, 0],
];