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

/// smooth-cool-warm -- Diverging 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 SMOOTH_COOL_WARM: Colormap = Colormap {
    meta: ColormapMeta {
        name: "smooth-cool-warm",
        collection: "moreland",
        author: "Kenneth Moreland",
        kind: ColormapKind::Diverging,
        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: &SMOOTH_COOL_WARM_LUT,
};

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