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

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

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

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

static MINT_PALETTE_COLORS: [[u8; 3]; 7] = [
    [228, 241, 225],
    [180, 217, 204],
    [137, 192, 182],
    [99, 166, 160],
    [68, 140, 138],
    [40, 114, 116],
    [13, 88, 95],
];