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

/// Set3 -- 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 SET3: Colormap = Colormap {
    meta: ColormapMeta {
        name: "Set3",
        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: &SET3_LUT,
};

static SET3_LUT: [[u8; 3]; 256] = [
    [141, 211, 199],
    [146, 213, 198],
    [151, 215, 197],
    [156, 217, 196],
    [161, 219, 196],
    [166, 220, 195],
    [171, 222, 194],
    [175, 224, 193],
    [180, 226, 192],
    [185, 228, 191],
    [190, 230, 190],
    [195, 232, 190],
    [200, 234, 189],
    [205, 236, 188],
    [210, 238, 187],
    [215, 239, 186],
    [220, 241, 185],
    [225, 243, 184],
    [230, 245, 183],
    [234, 247, 183],
    [239, 249, 182],
    [244, 251, 181],
    [249, 253, 180],
    [254, 255, 179],
    [253, 253, 180],
    [250, 250, 182],
    [247, 247, 184],
    [244, 244, 185],
    [241, 241, 187],
    [239, 238, 189],
    [236, 235, 190],
    [233, 232, 192],
    [230, 229, 194],
    [227, 226, 196],
    [225, 223, 197],
    [222, 220, 199],
    [219, 217, 201],
    [216, 214, 202],
    [213, 211, 204],
    [211, 208, 206],
    [208, 205, 207],
    [205, 202, 209],
    [202, 199, 211],
    [199, 196, 212],
    [197, 193, 214],
    [194, 190, 216],
    [191, 187, 217],
    [192, 184, 215],
    [194, 182, 211],
    [197, 179, 206],
    [200, 177, 202],
    [202, 174, 197],
    [205, 172, 193],
    [207, 169, 188],
    [210, 167, 184],
    [213, 164, 179],
    [215, 162, 175],
    [218, 159, 170],
    [221, 157, 166],
    [223, 154, 161],
    [226, 152, 157],
    [229, 149, 152],
    [231, 147, 148],
    [234, 144, 143],
    [236, 142, 139],
    [239, 139, 134],
    [242, 137, 130],
    [244, 134, 125],
    [247, 132, 121],
    [250, 129, 116],
    [249, 129, 116],
    [243, 131, 120],
    [238, 133, 124],
    [233, 135, 128],
    [227, 137, 133],
    [222, 140, 137],
    [217, 142, 141],
    [211, 144, 145],
    [206, 146, 149],
    [201, 148, 154],
    [196, 150, 158],
    [190, 152, 162],
    [185, 154, 166],
    [180, 156, 170],
    [174, 159, 174],
    [169, 161, 179],
    [164, 163, 183],
    [158, 165, 187],
    [153, 167, 191],
    [148, 169, 195],
    [142, 171, 200],
    [137, 173, 204],
    [132, 175, 208],
    [129, 177, 210],
    [135, 177, 205],
    [140, 177, 200],
    [146, 177, 195],
    [151, 178, 190],
    [156, 178, 185],
    [162, 178, 180],
    [167, 178, 176],
    [173, 178, 171],
    [178, 178, 166],
    [183, 178, 161],
    [189, 178, 156],
    [194, 179, 151],
    [200, 179, 146],
    [205, 179, 141],
    [210, 179, 137],
    [216, 179, 132],
    [221, 179, 127],
    [227, 179, 122],
    [232, 179, 117],
    [237, 180, 112],
    [243, 180, 107],
    [248, 180, 102],
    [253, 180, 98],
    [250, 182, 98],
    [246, 184, 99],
    [243, 186, 99],
    [240, 187, 99],
    [237, 189, 100],
    [234, 191, 100],
    [230, 193, 100],
    [227, 195, 100],
    [224, 196, 101],
    [221, 198, 101],
    [218, 200, 101],
    [214, 202, 102],
    [211, 204, 102],
    [208, 206, 102],
    [205, 207, 103],
    [202, 209, 103],
    [198, 211, 103],
    [195, 213, 103],
    [192, 215, 104],
    [189, 216, 104],
    [186, 218, 104],
    [182, 220, 105],
    [179, 222, 105],
    [182, 221, 110],
    [185, 221, 115],
    [188, 220, 121],
    [191, 219, 126],
    [194, 218, 131],
    [198, 218, 137],
    [201, 217, 142],
    [204, 216, 147],
    [207, 215, 153],
    [210, 215, 158],
    [213, 214, 163],
    [217, 213, 169],
    [220, 213, 174],
    [223, 212, 179],
    [226, 211, 185],
    [229, 210, 190],
    [232, 210, 195],
    [235, 209, 201],
    [239, 208, 206],
    [242, 207, 211],
    [245, 207, 217],
    [248, 206, 222],
    [251, 205, 228],
    [251, 205, 229],
    [249, 206, 228],
    [248, 206, 228],
    [246, 207, 227],
    [245, 207, 227],
    [243, 208, 226],
    [242, 208, 226],
    [240, 209, 225],
    [239, 210, 224],
    [237, 210, 224],
    [236, 211, 223],
    [234, 211, 223],
    [233, 212, 222],
    [231, 212, 222],
    [230, 213, 221],
    [228, 213, 221],
    [227, 214, 220],
    [225, 214, 220],
    [224, 215, 219],
    [222, 215, 219],
    [221, 216, 218],
    [219, 216, 218],
    [218, 217, 217],
    [216, 215, 216],
    [215, 211, 215],
    [214, 207, 214],
    [213, 203, 213],
    [211, 200, 212],
    [210, 196, 210],
    [209, 192, 209],
    [208, 188, 208],
    [206, 184, 207],
    [205, 180, 205],
    [204, 177, 204],
    [203, 173, 203],
    [201, 169, 202],
    [200, 165, 201],
    [199, 161, 199],
    [198, 157, 198],
    [196, 153, 197],
    [195, 150, 196],
    [194, 146, 195],
    [193, 142, 193],
    [191, 138, 192],
    [190, 134, 191],
    [189, 130, 190],
    [188, 130, 189],
    [189, 134, 189],
    [190, 139, 190],
    [190, 144, 190],
    [191, 148, 191],
    [192, 153, 191],
    [192, 157, 191],
    [193, 162, 192],
    [194, 167, 192],
    [194, 171, 192],
    [195, 176, 193],
    [196, 180, 193],
    [197, 185, 193],
    [197, 190, 194],
    [198, 194, 194],
    [199, 199, 194],
    [199, 204, 195],
    [200, 208, 195],
    [201, 213, 195],
    [201, 217, 196],
    [202, 222, 196],
    [203, 227, 196],
    [203, 231, 197],
    [204, 235, 196],
    [207, 235, 193],
    [209, 235, 189],
    [211, 235, 185],
    [213, 235, 181],
    [215, 235, 178],
    [218, 236, 174],
    [220, 236, 170],
    [222, 236, 167],
    [224, 236, 163],
    [226, 236, 159],
    [229, 236, 156],
    [231, 236, 152],
    [233, 236, 148],
    [235, 236, 144],
    [237, 236, 141],
    [240, 236, 137],
    [242, 236, 133],
    [244, 237, 130],
    [246, 237, 126],
    [248, 237, 122],
    [251, 237, 118],
    [253, 237, 115],
    [255, 237, 111],
];

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

static SET3_PALETTE_COLORS: [[u8; 3]; 12] = [
    [141, 211, 199],
    [255, 255, 179],
    [190, 186, 218],
    [251, 128, 114],
    [128, 177, 211],
    [253, 180, 98],
    [179, 222, 105],
    [252, 205, 229],
    [217, 217, 217],
    [188, 128, 189],
    [204, 235, 197],
    [255, 237, 111],
];