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

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

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

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

static BLUGRN_PALETTE_COLORS: [[u8; 3]; 7] = [
    [196, 230, 195],
    [150, 210, 164],
    [109, 188, 144],
    [77, 162, 132],
    [54, 135, 122],
    [38, 107, 110],
    [29, 79, 96],
];