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

/// guppy -- Diverging 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 GUPPY: Colormap = Colormap {
    meta: ColormapMeta {
        name: "guppy",
        collection: "cmasher",
        author: "Ellert van der Velden",
        kind: ColormapKind::Diverging,
        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: &GUPPY_LUT,
};

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