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

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

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

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

static BOLD_PALETTE_COLORS: [[u8; 3]; 12] = [
    [127, 60, 141],
    [17, 165, 121],
    [57, 105, 172],
    [242, 183, 1],
    [231, 63, 116],
    [128, 186, 90],
    [230, 131, 16],
    [0, 134, 149],
    [207, 28, 144],
    [249, 123, 114],
    [75, 75, 143],
    [165, 170, 153],
];