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

/// Oranges -- 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 ORANGES: Colormap = Colormap {
    meta: ColormapMeta {
        name: "Oranges",
        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: &ORANGES_LUT,
};

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

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

static ORANGES_PALETTE_COLORS: [[u8; 3]; 9] = [
    [255, 245, 235],
    [254, 230, 206],
    [253, 208, 162],
    [253, 174, 107],
    [253, 141, 60],
    [241, 105, 19],
    [217, 72, 1],
    [166, 54, 3],
    [127, 39, 4],
];