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

/// infinity -- 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 INFINITY: Colormap = Colormap {
    meta: ColormapMeta {
        name: "infinity",
        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: &INFINITY_LUT,
};

static INFINITY_LUT: [[u8; 3]; 256] = [
    [88, 7, 113],
    [89, 8, 116],
    [89, 10, 119],
    [90, 11, 122],
    [90, 13, 125],
    [90, 15, 128],
    [90, 16, 131],
    [91, 18, 133],
    [91, 20, 136],
    [91, 22, 139],
    [91, 24, 142],
    [91, 25, 144],
    [91, 27, 147],
    [91, 29, 149],
    [91, 31, 151],
    [90, 33, 154],
    [90, 35, 156],
    [90, 37, 158],
    [89, 39, 160],
    [89, 41, 162],
    [88, 43, 164],
    [87, 45, 166],
    [87, 48, 167],
    [86, 50, 169],
    [85, 52, 170],
    [84, 54, 172],
    [83, 56, 173],
    [82, 58, 174],
    [81, 61, 175],
    [79, 63, 176],
    [78, 65, 177],
    [77, 67, 178],
    [75, 69, 178],
    [74, 71, 179],
    [72, 74, 179],
    [71, 76, 179],
    [69, 78, 180],
    [67, 80, 180],
    [66, 82, 180],
    [64, 84, 180],
    [62, 86, 180],
    [60, 88, 180],
    [58, 90, 179],
    [56, 92, 179],
    [54, 94, 179],
    [52, 95, 179],
    [50, 97, 178],
    [48, 99, 178],
    [46, 101, 177],
    [44, 102, 177],
    [42, 104, 176],
    [40, 106, 176],
    [38, 108, 175],
    [35, 109, 174],
    [33, 111, 174],
    [31, 112, 173],
    [29, 114, 172],
    [27, 115, 172],
    [25, 117, 171],
    [23, 118, 170],
    [21, 120, 170],
    [18, 121, 169],
    [16, 123, 168],
    [15, 124, 167],
    [13, 126, 167],
    [11, 127, 166],
    [10, 128, 165],
    [8, 130, 165],
    [7, 131, 164],
    [7, 132, 163],
    [7, 134, 162],
    [7, 135, 162],
    [7, 136, 161],
    [8, 138, 160],
    [9, 139, 160],
    [11, 140, 159],
    [12, 142, 158],
    [14, 143, 157],
    [16, 144, 157],
    [18, 145, 156],
    [20, 146, 155],
    [22, 148, 154],
    [24, 149, 154],
    [26, 150, 153],
    [28, 151, 152],
    [30, 152, 151],
    [32, 154, 151],
    [35, 155, 150],
    [37, 156, 149],
    [39, 157, 148],
    [41, 158, 147],
    [44, 159, 146],
    [46, 161, 146],
    [48, 162, 145],
    [51, 163, 144],
    [53, 164, 143],
    [56, 165, 142],
    [58, 166, 141],
    [61, 167, 140],
    [63, 168, 139],
    [66, 169, 138],
    [68, 170, 137],
    [71, 171, 136],
    [74, 172, 135],
    [76, 173, 134],
    [79, 174, 133],
    [82, 175, 131],
    [85, 176, 130],
    [88, 177, 129],
    [91, 178, 128],
    [94, 179, 127],
    [97, 180, 126],
    [100, 181, 124],
    [103, 182, 123],
    [106, 182, 122],
    [109, 183, 121],
    [112, 184, 119],
    [115, 185, 118],
    [119, 186, 117],
    [122, 186, 116],
    [125, 187, 115],
    [129, 188, 113],
    [132, 188, 112],
    [135, 189, 111],
    [139, 190, 110],
    [142, 190, 109],
    [146, 191, 108],
    [149, 191, 106],
    [152, 192, 105],
    [153, 190, 102],
    [154, 188, 98],
    [155, 187, 95],
    [156, 185, 91],
    [158, 183, 88],
    [159, 181, 85],
    [160, 180, 82],
    [161, 178, 78],
    [163, 176, 75],
    [164, 174, 72],
    [165, 172, 69],
    [166, 171, 66],
    [168, 169, 63],
    [169, 167, 60],
    [170, 165, 57],
    [171, 163, 54],
    [172, 161, 51],
    [174, 159, 48],
    [175, 157, 46],
    [176, 155, 43],
    [177, 153, 40],
    [178, 151, 38],
    [179, 149, 35],
    [179, 147, 32],
    [180, 145, 30],
    [181, 143, 27],
    [182, 141, 25],
    [183, 139, 22],
    [184, 137, 20],
    [184, 135, 18],
    [185, 133, 15],
    [185, 131, 13],
    [186, 129, 11],
    [187, 127, 9],
    [187, 125, 7],
    [188, 123, 5],
    [188, 121, 4],
    [188, 119, 3],
    [189, 117, 2],
    [189, 115, 2],
    [189, 113, 2],
    [189, 111, 2],
    [190, 109, 2],
    [190, 107, 2],
    [190, 105, 3],
    [190, 103, 4],
    [190, 101, 5],
    [190, 99, 6],
    [190, 97, 8],
    [190, 95, 9],
    [190, 93, 11],
    [189, 91, 13],
    [189, 89, 15],
    [189, 88, 17],
    [189, 86, 18],
    [188, 84, 20],
    [188, 82, 22],
    [187, 80, 24],
    [187, 78, 25],
    [186, 77, 27],
    [186, 75, 29],
    [185, 73, 31],
    [184, 71, 32],
    [184, 70, 34],
    [183, 68, 36],
    [182, 66, 38],
    [181, 65, 39],
    [180, 63, 41],
    [179, 62, 43],
    [178, 60, 44],
    [177, 59, 46],
    [176, 57, 48],
    [175, 56, 50],
    [174, 55, 51],
    [173, 54, 53],
    [172, 52, 55],
    [170, 51, 56],
    [169, 50, 58],
    [168, 49, 60],
    [166, 48, 61],
    [165, 47, 63],
    [163, 46, 64],
    [162, 45, 66],
    [160, 44, 68],
    [159, 43, 69],
    [157, 42, 71],
    [156, 41, 72],
    [154, 41, 74],
    [153, 40, 75],
    [151, 39, 76],
    [149, 39, 78],
    [148, 38, 79],
    [146, 37, 81],
    [145, 37, 82],
    [143, 36, 83],
    [141, 35, 84],
    [139, 35, 86],
    [138, 34, 87],
    [136, 34, 88],
    [134, 33, 89],
    [133, 32, 90],
    [131, 32, 91],
    [129, 31, 92],
    [127, 31, 93],
    [126, 30, 94],
    [124, 29, 95],
    [122, 29, 96],
    [121, 28, 97],
    [119, 27, 98],
    [117, 27, 99],
    [115, 26, 100],
    [114, 25, 101],
    [112, 25, 102],
    [110, 24, 102],
    [109, 23, 103],
    [107, 22, 104],
    [105, 21, 105],
    [104, 20, 106],
    [102, 19, 106],
    [100, 18, 107],
    [99, 17, 108],
    [97, 16, 109],
    [95, 15, 110],
    [94, 13, 110],
    [92, 11, 111],
    [90, 10, 112],
    [89, 8, 113],
];