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

/// arctic -- 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 ARCTIC: Colormap = Colormap {
    meta: ColormapMeta {
        name: "arctic",
        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: &ARCTIC_LUT,
};

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