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

/// OrYel -- Sequential colormap from the cartocolors collection.
///
/// Author: CARTO
/// Perceptually uniform: false
/// CVD friendly: false
///
/// Citation: CARTO. CartoColor. carto.com/carto-colors
pub const ORYEL: Colormap = Colormap {
    meta: ColormapMeta {
        name: "OrYel",
        collection: "cartocolors",
        author: "CARTO",
        kind: ColormapKind::Sequential,
        perceptually_uniform: false,
        cvd_friendly: false,
        grayscale_safe: false,
        lut_size: 256,
        citation: "CARTO. CartoColor. carto.com/carto-colors",
    },
    lut: &ORYEL_LUT,
};

static ORYEL_LUT: [[u8; 3]; 256] = [
    [236, 218, 154],
    [236, 217, 153],
    [236, 217, 153],
    [236, 216, 152],
    [236, 216, 151],
    [236, 215, 151],
    [236, 215, 150],
    [236, 214, 149],
    [237, 214, 149],
    [237, 213, 148],
    [237, 213, 147],
    [237, 212, 147],
    [237, 212, 146],
    [237, 211, 145],
    [237, 211, 145],
    [237, 210, 144],
    [237, 210, 143],
    [237, 209, 143],
    [237, 209, 142],
    [237, 208, 141],
    [237, 208, 141],
    [237, 207, 140],
    [238, 207, 140],
    [238, 206, 139],
    [238, 206, 138],
    [238, 205, 138],
    [238, 205, 137],
    [238, 204, 136],
    [238, 204, 136],
    [238, 203, 135],
    [238, 202, 134],
    [238, 202, 134],
    [238, 201, 133],
    [238, 201, 132],
    [238, 200, 132],
    [238, 200, 131],
    [239, 199, 130],
    [239, 199, 130],
    [239, 198, 129],
    [239, 198, 128],
    [239, 197, 128],
    [239, 197, 127],
    [239, 196, 126],
    [239, 196, 126],
    [239, 195, 125],
    [239, 195, 125],
    [239, 194, 124],
    [239, 194, 124],
    [240, 193, 123],
    [240, 192, 123],
    [240, 192, 122],
    [240, 191, 122],
    [240, 191, 122],
    [240, 190, 121],
    [240, 190, 121],
    [240, 189, 120],
    [240, 189, 120],
    [240, 188, 119],
    [240, 188, 119],
    [241, 187, 118],
    [241, 187, 118],
    [241, 186, 117],
    [241, 185, 117],
    [241, 185, 116],
    [241, 184, 116],
    [241, 184, 115],
    [241, 183, 115],
    [241, 183, 114],
    [241, 182, 114],
    [241, 182, 114],
    [242, 181, 113],
    [242, 181, 113],
    [242, 180, 112],
    [242, 179, 112],
    [242, 179, 111],
    [242, 178, 111],
    [242, 178, 110],
    [242, 177, 110],
    [242, 177, 109],
    [242, 176, 109],
    [243, 176, 108],
    [243, 175, 108],
    [243, 175, 107],
    [243, 174, 107],
    [243, 174, 106],
    [243, 173, 106],
    [243, 172, 106],
    [243, 172, 105],
    [243, 171, 105],
    [243, 171, 105],
    [243, 170, 104],
    [244, 169, 104],
    [244, 169, 104],
    [244, 168, 104],
    [244, 168, 103],
    [244, 167, 103],
    [244, 167, 103],
    [244, 166, 102],
    [244, 165, 102],
    [244, 165, 102],
    [244, 164, 101],
    [245, 164, 101],
    [245, 163, 101],
    [245, 162, 100],
    [245, 162, 100],
    [245, 161, 100],
    [245, 161, 100],
    [245, 160, 99],
    [245, 159, 99],
    [245, 159, 99],
    [245, 158, 98],
    [245, 158, 98],
    [246, 157, 98],
    [246, 157, 97],
    [246, 156, 97],
    [246, 155, 97],
    [246, 155, 97],
    [246, 154, 96],
    [246, 154, 96],
    [246, 153, 96],
    [246, 152, 95],
    [246, 152, 95],
    [246, 151, 95],
    [247, 151, 94],
    [247, 150, 94],
    [247, 149, 94],
    [247, 149, 93],
    [247, 148, 93],
    [247, 148, 93],
    [247, 147, 93],
    [247, 147, 93],
    [247, 146, 93],
    [247, 145, 92],
    [247, 145, 92],
    [247, 144, 92],
    [247, 144, 92],
    [247, 143, 92],
    [247, 142, 92],
    [247, 142, 92],
    [248, 141, 91],
    [248, 141, 91],
    [248, 140, 91],
    [248, 139, 91],
    [248, 139, 91],
    [248, 138, 91],
    [248, 138, 91],
    [248, 137, 90],
    [248, 137, 90],
    [248, 136, 90],
    [248, 135, 90],
    [248, 135, 90],
    [248, 134, 90],
    [248, 134, 90],
    [248, 133, 89],
    [248, 132, 89],
    [248, 132, 89],
    [248, 131, 89],
    [248, 131, 89],
    [248, 130, 89],
    [248, 129, 89],
    [249, 129, 88],
    [249, 128, 88],
    [249, 128, 88],
    [249, 127, 88],
    [249, 127, 88],
    [249, 126, 88],
    [249, 125, 88],
    [249, 125, 87],
    [249, 124, 87],
    [249, 124, 87],
    [249, 123, 87],
    [249, 122, 87],
    [249, 122, 87],
    [249, 121, 87],
    [249, 121, 87],
    [249, 120, 87],
    [249, 120, 87],
    [249, 119, 87],
    [248, 118, 87],
    [248, 118, 87],
    [248, 117, 87],
    [248, 117, 87],
    [248, 116, 87],
    [248, 116, 87],
    [248, 115, 87],
    [248, 115, 87],
    [248, 114, 87],
    [248, 113, 87],
    [248, 113, 87],
    [248, 112, 87],
    [248, 112, 87],
    [248, 111, 87],
    [247, 111, 86],
    [247, 110, 86],
    [247, 109, 86],
    [247, 109, 86],
    [247, 108, 86],
    [247, 108, 86],
    [247, 107, 86],
    [247, 107, 86],
    [247, 106, 86],
    [247, 105, 86],
    [247, 105, 86],
    [247, 104, 86],
    [247, 104, 86],
    [247, 103, 86],
    [246, 103, 86],
    [246, 102, 86],
    [246, 102, 86],
    [246, 101, 86],
    [246, 100, 86],
    [246, 100, 86],
    [246, 99, 86],
    [246, 99, 86],
    [246, 98, 86],
    [246, 98, 86],
    [245, 97, 86],
    [245, 97, 86],
    [245, 96, 87],
    [245, 96, 87],
    [245, 95, 87],
    [244, 95, 87],
    [244, 94, 87],
    [244, 94, 87],
    [244, 93, 87],
    [244, 93, 87],
    [243, 92, 87],
    [243, 91, 87],
    [243, 91, 87],
    [243, 90, 88],
    [243, 90, 88],
    [243, 89, 88],
    [242, 89, 88],
    [242, 88, 88],
    [242, 88, 88],
    [242, 87, 88],
    [242, 87, 88],
    [241, 86, 88],
    [241, 86, 88],
    [241, 85, 88],
    [241, 85, 89],
    [241, 84, 89],
    [240, 84, 89],
    [240, 83, 89],
    [240, 83, 89],
    [240, 82, 89],
    [240, 82, 89],
    [240, 81, 89],
    [239, 81, 89],
    [239, 80, 89],
    [239, 80, 90],
    [239, 79, 90],
    [239, 79, 90],
    [238, 78, 90],
    [238, 78, 90],
    [238, 77, 90],
];

/// Original 7-color discrete palette.
pub const ORYEL_PALETTE: DiscretePalette = DiscretePalette {
    meta: ColormapMeta {
        name: "OrYel",
        collection: "cartocolors",
        author: "CARTO",
        kind: ColormapKind::Sequential,
        perceptually_uniform: false,
        cvd_friendly: false,
        grayscale_safe: false,
        lut_size: 7,
        citation: "CARTO. CartoColor. carto.com/carto-colors",
    },
    colors: &ORYEL_PALETTE_COLORS,
};

static ORYEL_PALETTE_COLORS: [[u8; 3]; 7] = [
    [236, 218, 154],
    [239, 196, 126],
    [243, 173, 106],
    [247, 148, 93],
    [249, 123, 87],
    [246, 99, 86],
    [238, 77, 90],
];