prismatica 1.0.0

308 scientific colormaps as compile-time Rust constants
Documentation
// Auto-generated by prismatica xtask -- do not edit
use crate::{Colormap, ColormapKind, ColormapMeta, DiscretePalette};

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

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

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

static BRWNYL_PALETTE_COLORS: [[u8; 3]; 7] = [
    [237, 229, 207],
    [224, 194, 162],
    [211, 156, 131],
    [193, 118, 111],
    [166, 84, 97],
    [129, 55, 83],
    [84, 31, 63],
];