prismatica 0.3.0

308 scientific colormaps as compile-time Rust constants
// Auto-generated by prismatica xtask -- do not edit
use crate::{Colormap, ColormapKind, ColormapMeta, DiscretePalette};

/// Dark2 -- 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 DARK2: Colormap = Colormap {
    meta: ColormapMeta {
        name: "Dark2",
        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: &DARK2_LUT,
};

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

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

static DARK2_PALETTE_COLORS: [[u8; 3]; 8] = [
    [27, 158, 119],
    [217, 95, 2],
    [117, 112, 179],
    [231, 41, 138],
    [102, 166, 30],
    [230, 171, 2],
    [166, 118, 29],
    [102, 102, 102],
];