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

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

static EARTH_LUT: [[u8; 3]; 256] = [
    [161, 105, 40],
    [162, 106, 41],
    [162, 107, 42],
    [163, 108, 44],
    [164, 109, 45],
    [164, 110, 46],
    [165, 111, 47],
    [166, 112, 48],
    [166, 113, 49],
    [167, 114, 51],
    [168, 115, 52],
    [168, 116, 53],
    [169, 117, 54],
    [170, 118, 55],
    [170, 119, 56],
    [171, 119, 58],
    [172, 120, 59],
    [172, 121, 60],
    [173, 122, 61],
    [174, 123, 62],
    [174, 124, 64],
    [175, 125, 65],
    [175, 126, 66],
    [176, 127, 67],
    [177, 128, 68],
    [177, 129, 69],
    [178, 130, 71],
    [179, 131, 72],
    [179, 132, 73],
    [180, 133, 74],
    [181, 134, 75],
    [181, 135, 76],
    [182, 136, 78],
    [183, 137, 79],
    [183, 138, 80],
    [184, 139, 81],
    [185, 140, 82],
    [185, 141, 84],
    [186, 142, 85],
    [187, 143, 86],
    [187, 144, 87],
    [188, 145, 88],
    [189, 146, 89],
    [189, 147, 91],
    [190, 148, 92],
    [190, 149, 93],
    [191, 150, 94],
    [192, 151, 95],
    [192, 152, 97],
    [193, 153, 98],
    [193, 154, 99],
    [194, 155, 100],
    [195, 156, 101],
    [195, 157, 103],
    [196, 158, 104],
    [196, 159, 105],
    [197, 160, 106],
    [198, 161, 107],
    [198, 162, 109],
    [199, 163, 110],
    [199, 164, 111],
    [200, 165, 112],
    [200, 166, 113],
    [201, 167, 115],
    [202, 168, 116],
    [202, 169, 117],
    [203, 170, 118],
    [203, 171, 119],
    [204, 172, 121],
    [205, 173, 122],
    [205, 174, 123],
    [206, 175, 124],
    [206, 176, 125],
    [207, 177, 127],
    [208, 178, 128],
    [208, 179, 129],
    [209, 180, 130],
    [209, 181, 131],
    [210, 182, 133],
    [210, 183, 134],
    [211, 184, 135],
    [212, 185, 136],
    [212, 186, 137],
    [213, 187, 139],
    [213, 188, 140],
    [214, 189, 141],
    [215, 190, 142],
    [215, 191, 143],
    [216, 192, 145],
    [216, 193, 146],
    [217, 194, 147],
    [217, 195, 148],
    [218, 196, 150],
    [218, 197, 151],
    [219, 199, 152],
    [219, 200, 153],
    [220, 201, 155],
    [220, 202, 156],
    [221, 203, 157],
    [222, 204, 158],
    [222, 205, 160],
    [223, 206, 161],
    [223, 207, 162],
    [224, 208, 163],
    [224, 209, 165],
    [225, 210, 166],
    [225, 211, 167],
    [226, 212, 168],
    [226, 213, 170],
    [227, 214, 171],
    [228, 215, 172],
    [228, 217, 173],
    [229, 218, 175],
    [229, 219, 176],
    [230, 220, 177],
    [230, 221, 178],
    [231, 222, 180],
    [231, 223, 181],
    [232, 224, 182],
    [232, 225, 183],
    [233, 226, 185],
    [233, 227, 186],
    [234, 228, 187],
    [235, 229, 188],
    [235, 230, 190],
    [236, 231, 191],
    [236, 232, 192],
    [237, 233, 193],
    [236, 234, 194],
    [235, 233, 194],
    [234, 232, 193],
    [232, 231, 193],
    [231, 230, 193],
    [230, 230, 193],
    [228, 229, 192],
    [227, 228, 192],
    [226, 227, 192],
    [224, 226, 192],
    [223, 226, 192],
    [222, 225, 191],
    [221, 224, 191],
    [219, 223, 191],
    [218, 222, 191],
    [217, 222, 190],
    [215, 221, 190],
    [214, 220, 190],
    [213, 219, 190],
    [211, 218, 189],
    [210, 218, 189],
    [209, 217, 189],
    [207, 216, 189],
    [206, 215, 188],
    [205, 214, 188],
    [203, 214, 188],
    [202, 213, 188],
    [201, 212, 188],
    [199, 211, 187],
    [198, 210, 187],
    [197, 210, 187],
    [195, 209, 187],
    [194, 208, 186],
    [193, 207, 186],
    [192, 206, 186],
    [190, 206, 186],
    [189, 205, 185],
    [188, 204, 185],
    [186, 203, 185],
    [185, 202, 185],
    [184, 202, 184],
    [182, 201, 184],
    [181, 200, 184],
    [180, 199, 184],
    [178, 198, 183],
    [177, 198, 183],
    [175, 197, 183],
    [174, 196, 183],
    [173, 195, 182],
    [171, 195, 182],
    [170, 194, 182],
    [168, 193, 181],
    [167, 192, 181],
    [165, 191, 181],
    [164, 191, 181],
    [163, 190, 180],
    [161, 189, 180],
    [160, 188, 180],
    [158, 188, 179],
    [157, 187, 179],
    [156, 186, 179],
    [154, 185, 179],
    [153, 184, 178],
    [151, 184, 178],
    [150, 183, 178],
    [149, 182, 178],
    [147, 181, 177],
    [146, 181, 177],
    [144, 180, 177],
    [143, 179, 176],
    [141, 178, 176],
    [140, 177, 176],
    [139, 177, 176],
    [137, 176, 175],
    [136, 175, 175],
    [134, 174, 175],
    [133, 174, 174],
    [132, 173, 174],
    [130, 172, 174],
    [129, 171, 174],
    [127, 170, 173],
    [126, 170, 173],
    [125, 169, 173],
    [123, 168, 172],
    [122, 167, 172],
    [120, 167, 172],
    [118, 166, 172],
    [116, 165, 171],
    [114, 164, 171],
    [112, 164, 171],
    [111, 163, 171],
    [109, 162, 170],
    [107, 161, 170],
    [105, 161, 170],
    [103, 160, 170],
    [101, 159, 169],
    [99, 158, 169],
    [97, 158, 169],
    [95, 157, 169],
    [93, 156, 168],
    [91, 155, 168],
    [90, 155, 168],
    [88, 154, 167],
    [86, 153, 167],
    [84, 152, 167],
    [82, 152, 167],
    [80, 151, 166],
    [78, 150, 166],
    [76, 149, 166],
    [74, 149, 166],
    [72, 148, 165],
    [70, 147, 165],
    [69, 146, 165],
    [67, 146, 165],
    [65, 145, 164],
    [63, 144, 164],
    [61, 143, 164],
    [59, 143, 164],
    [57, 142, 163],
    [55, 141, 163],
    [53, 140, 163],
    [51, 140, 163],
    [50, 139, 162],
    [48, 138, 162],
    [46, 137, 162],
    [44, 137, 162],
    [42, 136, 161],
    [40, 135, 161],
];

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

static EARTH_PALETTE_COLORS: [[u8; 3]; 7] = [
    [161, 105, 40],
    [189, 146, 90],
    [214, 189, 141],
    [237, 234, 194],
    [181, 200, 184],
    [121, 167, 172],
    [40, 135, 161],
];