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

/// GnBu -- 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 GNBU: Colormap = Colormap {
    meta: ColormapMeta {
        name: "GnBu",
        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: &GNBU_LUT,
};

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

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

static GNBU_PALETTE_COLORS: [[u8; 3]; 9] = [
    [247, 252, 240],
    [224, 243, 219],
    [204, 235, 197],
    [168, 221, 181],
    [123, 204, 196],
    [78, 179, 211],
    [43, 140, 190],
    [8, 104, 172],
    [8, 64, 129],
];