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

/// voltage -- 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 VOLTAGE: Colormap = Colormap {
    meta: ColormapMeta {
        name: "voltage",
        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: &VOLTAGE_LUT,
};

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