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

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

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

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

static EMRLD_PALETTE_COLORS: [[u8; 3]; 7] = [
    [211, 242, 163],
    [151, 225, 150],
    [108, 192, 139],
    [76, 155, 130],
    [33, 122, 121],
    [16, 89, 101],
    [7, 64, 80],
];