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

/// ocean -- Sequential 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 OCEAN: Colormap = Colormap {
    meta: ColormapMeta {
        name: "ocean",
        collection: "cmasher",
        author: "Ellert van der Velden",
        kind: ColormapKind::Sequential,
        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: &OCEAN_LUT,
};

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