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

/// Peach -- Sequential colormap from the cartocolors collection.
///
/// Author: CARTO
/// Perceptually uniform: false
/// CVD friendly: false
///
/// Citation: CARTO. CartoColor. carto.com/carto-colors
pub const PEACH: Colormap = Colormap {
    meta: ColormapMeta {
        name: "Peach",
        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: &PEACH_LUT,
};

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

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

static PEACH_PALETTE_COLORS: [[u8; 3]; 7] = [
    [253, 224, 197],
    [250, 203, 166],
    [248, 181, 139],
    [245, 158, 114],
    [242, 133, 93],
    [239, 106, 76],
    [235, 74, 64],
];