prismatica 1.0.0

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

/// waterlily -- Diverging colormap from the cmasher collection.
///
/// Author: Ellert van der Velden
/// Perceptually uniform: true
/// CVD friendly: true
///
/// Citation: van der Velden, E. (2020). CMasher: Scientific colormaps for making accessible, informative and 'cmashing' plots. JOSS, 5(46), 2004.
pub const WATERLILY: Colormap = Colormap {
    meta: ColormapMeta {
        name: "waterlily",
        collection: "cmasher",
        author: "Ellert van der Velden",
        kind: ColormapKind::Diverging,
        perceptually_uniform: true,
        cvd_friendly: true,
        grayscale_safe: false,
        lut_size: 256,
        citation: "van der Velden, E. (2020). CMasher: Scientific colormaps for making accessible, informative and 'cmashing' plots. JOSS, 5(46), 2004.",
    },
    lut: &WATERLILY_LUT,
};

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