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

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

static TEMPS_LUT: [[u8; 3]; 256] = [
    [0, 147, 146],
    [1, 148, 146],
    [3, 148, 145],
    [4, 149, 145],
    [5, 150, 145],
    [7, 151, 144],
    [8, 151, 144],
    [9, 152, 144],
    [11, 153, 144],
    [12, 153, 143],
    [13, 154, 143],
    [15, 155, 143],
    [16, 155, 142],
    [17, 156, 142],
    [19, 157, 142],
    [20, 158, 141],
    [21, 158, 141],
    [23, 159, 141],
    [24, 160, 140],
    [25, 160, 140],
    [27, 161, 140],
    [28, 162, 140],
    [30, 163, 139],
    [31, 163, 139],
    [32, 164, 139],
    [34, 165, 138],
    [35, 165, 138],
    [36, 166, 138],
    [38, 167, 137],
    [39, 167, 137],
    [40, 168, 137],
    [42, 169, 137],
    [43, 170, 136],
    [44, 170, 136],
    [46, 171, 136],
    [47, 172, 135],
    [48, 172, 135],
    [50, 173, 135],
    [51, 174, 134],
    [52, 175, 134],
    [54, 175, 134],
    [55, 176, 133],
    [56, 177, 133],
    [58, 177, 133],
    [60, 178, 133],
    [63, 179, 133],
    [65, 179, 133],
    [67, 180, 133],
    [70, 180, 133],
    [72, 181, 133],
    [74, 182, 133],
    [77, 182, 133],
    [79, 183, 133],
    [81, 183, 133],
    [84, 184, 133],
    [86, 185, 133],
    [88, 185, 133],
    [91, 186, 133],
    [93, 186, 133],
    [95, 187, 133],
    [98, 188, 133],
    [100, 188, 133],
    [102, 189, 133],
    [105, 190, 133],
    [107, 190, 134],
    [109, 191, 134],
    [112, 191, 134],
    [114, 192, 134],
    [116, 193, 134],
    [119, 193, 134],
    [121, 194, 134],
    [123, 194, 134],
    [126, 195, 134],
    [128, 196, 134],
    [130, 196, 134],
    [133, 197, 134],
    [135, 197, 134],
    [137, 198, 134],
    [140, 199, 134],
    [142, 199, 134],
    [144, 200, 134],
    [147, 201, 134],
    [149, 201, 134],
    [151, 202, 134],
    [154, 202, 134],
    [156, 203, 134],
    [158, 204, 135],
    [160, 204, 135],
    [161, 205, 136],
    [163, 205, 136],
    [165, 206, 137],
    [167, 206, 137],
    [169, 207, 138],
    [170, 207, 138],
    [172, 208, 139],
    [174, 208, 139],
    [176, 209, 140],
    [178, 209, 140],
    [180, 210, 141],
    [181, 211, 141],
    [183, 211, 142],
    [185, 212, 142],
    [187, 212, 143],
    [189, 213, 143],
    [190, 213, 144],
    [192, 214, 144],
    [194, 214, 145],
    [196, 215, 145],
    [198, 215, 146],
    [199, 216, 146],
    [201, 217, 147],
    [203, 217, 147],
    [205, 218, 148],
    [207, 218, 148],
    [209, 219, 149],
    [210, 219, 150],
    [212, 220, 150],
    [214, 220, 151],
    [216, 221, 151],
    [218, 221, 152],
    [219, 222, 152],
    [221, 222, 153],
    [223, 223, 153],
    [225, 224, 154],
    [227, 224, 154],
    [228, 225, 155],
    [230, 225, 155],
    [232, 226, 156],
    [233, 225, 156],
    [233, 224, 155],
    [233, 223, 154],
    [233, 222, 153],
    [234, 221, 152],
    [234, 220, 151],
    [234, 219, 151],
    [234, 218, 150],
    [234, 217, 149],
    [234, 216, 148],
    [234, 215, 147],
    [234, 214, 147],
    [234, 212, 146],
    [235, 211, 145],
    [235, 210, 144],
    [235, 209, 143],
    [235, 208, 142],
    [235, 207, 142],
    [235, 206, 141],
    [235, 205, 140],
    [235, 204, 139],
    [236, 203, 138],
    [236, 202, 137],
    [236, 201, 137],
    [236, 199, 136],
    [236, 198, 135],
    [236, 197, 134],
    [236, 196, 133],
    [236, 195, 133],
    [236, 194, 132],
    [237, 193, 131],
    [237, 192, 130],
    [237, 191, 129],
    [237, 190, 128],
    [237, 189, 128],
    [237, 188, 127],
    [237, 186, 126],
    [237, 185, 125],
    [238, 184, 124],
    [238, 183, 123],
    [238, 182, 123],
    [238, 181, 122],
    [238, 180, 121],
    [238, 179, 121],
    [238, 178, 121],
    [238, 177, 120],
    [237, 175, 120],
    [237, 174, 120],
    [237, 173, 120],
    [237, 172, 120],
    [237, 171, 119],
    [237, 170, 119],
    [237, 169, 119],
    [236, 168, 119],
    [236, 166, 119],
    [236, 165, 119],
    [236, 164, 118],
    [236, 163, 118],
    [236, 162, 118],
    [236, 161, 118],
    [235, 160, 118],
    [235, 159, 117],
    [235, 157, 117],
    [235, 156, 117],
    [235, 155, 117],
    [235, 154, 117],
    [235, 153, 116],
    [234, 152, 116],
    [234, 151, 116],
    [234, 150, 116],
    [234, 148, 116],
    [234, 147, 116],
    [234, 146, 115],
    [234, 145, 115],
    [233, 144, 115],
    [233, 143, 115],
    [233, 142, 115],
    [233, 140, 114],
    [233, 139, 114],
    [233, 138, 114],
    [233, 137, 114],
    [232, 136, 114],
    [232, 135, 113],
    [232, 134, 113],
    [232, 133, 113],
    [232, 131, 113],
    [231, 130, 113],
    [231, 129, 114],
    [230, 128, 114],
    [229, 127, 114],
    [229, 126, 115],
    [228, 125, 115],
    [228, 124, 115],
    [227, 123, 116],
    [226, 122, 116],
    [226, 121, 116],
    [225, 120, 117],
    [225, 119, 117],
    [224, 118, 117],
    [223, 117, 117],
    [223, 116, 118],
    [222, 115, 118],
    [222, 114, 118],
    [221, 113, 119],
    [221, 112, 119],
    [220, 111, 119],
    [219, 110, 120],
    [219, 109, 120],
    [218, 108, 120],
    [218, 107, 120],
    [217, 106, 121],
    [216, 105, 121],
    [216, 104, 121],
    [215, 103, 122],
    [215, 102, 122],
    [214, 101, 122],
    [213, 100, 123],
    [213, 99, 123],
    [212, 98, 123],
    [212, 97, 124],
    [211, 96, 124],
    [211, 95, 124],
    [210, 94, 124],
    [209, 93, 125],
    [209, 92, 125],
    [208, 91, 125],
    [208, 90, 126],
    [207, 89, 126],
];

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

static TEMPS_PALETTE_COLORS: [[u8; 3]; 7] = [
    [0, 147, 146],
    [57, 177, 133],
    [156, 203, 134],
    [233, 226, 156],
    [238, 180, 121],
    [232, 132, 113],
    [207, 89, 126],
];