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

/// watermelon -- 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 WATERMELON: Colormap = Colormap {
    meta: ColormapMeta {
        name: "watermelon",
        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: &WATERMELON_LUT,
};

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