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

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

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

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

static MAGENTA_PALETTE_COLORS: [[u8; 3]; 7] = [
    [243, 203, 211],
    [234, 169, 189],
    [221, 136, 172],
    [202, 105, 157],
    [177, 77, 142],
    [145, 53, 125],
    [108, 33, 103],
];