prismatica 0.3.1

308 scientific colormaps as compile-time Rust constants
Documentation
// Auto-generated by prismatica xtask -- do not edit
use crate::{Colormap, ColormapKind, ColormapMeta};

/// viola -- 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 VIOLA: Colormap = Colormap {
    meta: ColormapMeta {
        name: "viola",
        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: &VIOLA_LUT,
};

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