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

/// seasons -- 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 SEASONS: Colormap = Colormap {
    meta: ColormapMeta {
        name: "seasons",
        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: &SEASONS_LUT,
};

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