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

/// Vivid -- Qualitative colormap from the cartocolors collection.
///
/// Author: CARTO
/// Perceptually uniform: false
/// CVD friendly: false
///
/// Citation: CARTO. CartoColor. carto.com/carto-colors
pub const VIVID: Colormap = Colormap {
    meta: ColormapMeta {
        name: "Vivid",
        collection: "cartocolors",
        author: "CARTO",
        kind: ColormapKind::Qualitative,
        perceptually_uniform: false,
        cvd_friendly: false,
        grayscale_safe: false,
        lut_size: 256,
        citation: "CARTO. CartoColor. carto.com/carto-colors",
    },
    lut: &VIVID_LUT,
};

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

/// Original 12-color discrete palette.
pub const VIVID_PALETTE: DiscretePalette = DiscretePalette {
    meta: ColormapMeta {
        name: "Vivid",
        collection: "cartocolors",
        author: "CARTO",
        kind: ColormapKind::Qualitative,
        perceptually_uniform: false,
        cvd_friendly: false,
        grayscale_safe: false,
        lut_size: 12,
        citation: "CARTO. CartoColor. carto.com/carto-colors",
    },
    colors: &VIVID_PALETTE_COLORS,
};

static VIVID_PALETTE_COLORS: [[u8; 3]; 12] = [
    [229, 134, 6],
    [93, 105, 177],
    [82, 188, 163],
    [153, 201, 69],
    [204, 97, 176],
    [36, 121, 108],
    [218, 165, 27],
    [47, 138, 196],
    [118, 78, 159],
    [237, 100, 90],
    [204, 58, 142],
    [165, 170, 153],
];