prismatica 1.0.0

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

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

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

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

static GEYSER_PALETTE_COLORS: [[u8; 3]; 7] = [
    [0, 128, 128],
    [112, 164, 148],
    [180, 200, 168],
    [246, 237, 189],
    [237, 187, 138],
    [222, 138, 90],
    [202, 86, 44],
];