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

/// ghostlight -- 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 GHOSTLIGHT: Colormap = Colormap {
    meta: ColormapMeta {
        name: "ghostlight",
        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: &GHOSTLIGHT_LUT,
};

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