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

/// eclipse -- 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 ECLIPSE: Colormap = Colormap {
    meta: ColormapMeta {
        name: "eclipse",
        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: &ECLIPSE_LUT,
};

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