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

/// Set2 -- 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 SET2: Colormap = Colormap {
    meta: ColormapMeta {
        name: "Set2",
        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: &SET2_LUT,
};

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

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

static SET2_PALETTE_COLORS: [[u8; 3]; 8] = [
    [102, 194, 165],
    [252, 141, 98],
    [141, 160, 203],
    [231, 138, 195],
    [166, 216, 84],
    [255, 217, 47],
    [229, 196, 148],
    [179, 179, 179],
];