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

/// emergency -- 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 EMERGENCY: Colormap = Colormap {
    meta: ColormapMeta {
        name: "emergency",
        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: &EMERGENCY_LUT,
};

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