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

/// fast -- Sequential colormap from the moreland collection.
///
/// Author: Kenneth Moreland
/// Perceptually uniform: true
/// CVD friendly: true
///
/// Citation: Moreland, K. (2016). Why We Use Bad Color Maps and What You Can Do About It.
pub const FAST: Colormap = Colormap {
    meta: ColormapMeta {
        name: "fast",
        collection: "moreland",
        author: "Kenneth Moreland",
        kind: ColormapKind::Sequential,
        perceptually_uniform: true,
        cvd_friendly: true,
        grayscale_safe: true,
        lut_size: 256,
        citation: "Moreland, K. (2016). Why We Use Bad Color Maps and What You Can Do About It.",
    },
    lut: &FAST_LUT,
};

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