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

/// RdPu -- Sequential colormap from the colorbrewer collection.
///
/// Author: Cynthia Brewer
/// Perceptually uniform: true
/// CVD friendly: false
///
/// Citation: Brewer, C. A. (2003). ColorBrewer. www.colorbrewer2.org
pub const RDPU: Colormap = Colormap {
    meta: ColormapMeta {
        name: "RdPu",
        collection: "colorbrewer",
        author: "Cynthia Brewer",
        kind: ColormapKind::Sequential,
        perceptually_uniform: true,
        cvd_friendly: false,
        grayscale_safe: false,
        lut_size: 256,
        citation: "Brewer, C. A. (2003). ColorBrewer. www.colorbrewer2.org",
    },
    lut: &RDPU_LUT,
};

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

/// Original 9-color discrete palette.
pub const RDPU_PALETTE: DiscretePalette = DiscretePalette {
    meta: ColormapMeta {
        name: "RdPu",
        collection: "colorbrewer",
        author: "Cynthia Brewer",
        kind: ColormapKind::Sequential,
        perceptually_uniform: true,
        cvd_friendly: false,
        grayscale_safe: false,
        lut_size: 9,
        citation: "Brewer, C. A. (2003). ColorBrewer. www.colorbrewer2.org",
    },
    colors: &RDPU_PALETTE_COLORS,
};

static RDPU_PALETTE_COLORS: [[u8; 3]; 9] = [
    [255, 247, 243],
    [253, 224, 221],
    [252, 197, 192],
    [250, 159, 181],
    [247, 104, 161],
    [221, 52, 151],
    [174, 1, 126],
    [122, 1, 119],
    [73, 0, 106],
];