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

/// nuclear -- 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 NUCLEAR: Colormap = Colormap {
    meta: ColormapMeta {
        name: "nuclear",
        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: &NUCLEAR_LUT,
};

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