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

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

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

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

static BURGYL_PALETTE_COLORS: [[u8; 3]; 7] = [
    [251, 230, 197],
    [245, 186, 152],
    [238, 138, 130],
    [220, 113, 118],
    [200, 88, 108],
    [156, 63, 93],
    [112, 40, 74],
];