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

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

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

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

static BURG_PALETTE_COLORS: [[u8; 3]; 7] = [
    [255, 198, 196],
    [244, 163, 168],
    [227, 129, 145],
    [204, 96, 125],
    [173, 70, 108],
    [139, 48, 88],
    [103, 32, 68],
];