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

/// Greens -- 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 GREENS: Colormap = Colormap {
    meta: ColormapMeta {
        name: "Greens",
        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: &GREENS_LUT,
};

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

/// Original 9-color discrete palette.
pub const GREENS_PALETTE: DiscretePalette = DiscretePalette {
    meta: ColormapMeta {
        name: "Greens",
        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: &GREENS_PALETTE_COLORS,
};

static GREENS_PALETTE_COLORS: [[u8; 3]; 9] = [
    [247, 252, 245],
    [229, 245, 224],
    [199, 233, 192],
    [161, 217, 155],
    [116, 196, 118],
    [65, 171, 93],
    [35, 139, 69],
    [0, 109, 44],
    [0, 68, 27],
];