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

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

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

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

static SET1_PALETTE_COLORS: [[u8; 3]; 9] = [
    [228, 26, 28],
    [55, 126, 184],
    [77, 175, 74],
    [152, 78, 163],
    [255, 127, 0],
    [255, 255, 51],
    [166, 86, 40],
    [247, 129, 191],
    [153, 153, 153],
];