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

/// kindlmann -- Sequential colormap from the moreland collection.
///
/// Author: Kenneth Moreland
/// Perceptually uniform: true
/// CVD friendly: true
///
/// Citation: Moreland, K. (2016). Why We Use Bad Color Maps and What You Can Do About It.
pub const KINDLMANN: Colormap = Colormap {
    meta: ColormapMeta {
        name: "kindlmann",
        collection: "moreland",
        author: "Kenneth Moreland",
        kind: ColormapKind::Sequential,
        perceptually_uniform: true,
        cvd_friendly: true,
        grayscale_safe: true,
        lut_size: 256,
        citation: "Moreland, K. (2016). Why We Use Bad Color Maps and What You Can Do About It.",
    },
    lut: &KINDLMANN_LUT,
};

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