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

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

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

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

static REDOR_PALETTE_COLORS: [[u8; 3]; 7] = [
    [246, 210, 169],
    [245, 183, 142],
    [241, 156, 124],
    [234, 129, 113],
    [221, 104, 108],
    [202, 82, 104],
    [177, 63, 100],
];