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

/// savanna -- 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 SAVANNA: Colormap = Colormap {
    meta: ColormapMeta {
        name: "savanna",
        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: &SAVANNA_LUT,
};

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