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

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

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

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

static PURPOR_PALETTE_COLORS: [[u8; 3]; 7] = [
    [249, 221, 218],
    [242, 185, 196],
    [229, 151, 185],
    [206, 120, 179],
    [173, 95, 173],
    [131, 75, 160],
    [87, 59, 136],
];