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

/// black-body -- 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 BLACK_BODY: Colormap = Colormap {
    meta: ColormapMeta {
        name: "black-body",
        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: &BLACK_BODY_LUT,
};

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