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

/// Fall -- Diverging colormap from the cartocolors collection.
///
/// Author: CARTO
/// Perceptually uniform: false
/// CVD friendly: false
///
/// Citation: CARTO. CartoColor. carto.com/carto-colors
pub const FALL: Colormap = Colormap {
    meta: ColormapMeta {
        name: "Fall",
        collection: "cartocolors",
        author: "CARTO",
        kind: ColormapKind::Diverging,
        perceptually_uniform: false,
        cvd_friendly: false,
        grayscale_safe: false,
        lut_size: 256,
        citation: "CARTO. CartoColor. carto.com/carto-colors",
    },
    lut: &FALL_LUT,
};

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

/// Original 7-color discrete palette.
pub const FALL_PALETTE: DiscretePalette = DiscretePalette {
    meta: ColormapMeta {
        name: "Fall",
        collection: "cartocolors",
        author: "CARTO",
        kind: ColormapKind::Diverging,
        perceptually_uniform: false,
        cvd_friendly: false,
        grayscale_safe: false,
        lut_size: 7,
        citation: "CARTO. CartoColor. carto.com/carto-colors",
    },
    colors: &FALL_PALETTE_COLORS,
};

static FALL_PALETTE_COLORS: [[u8; 3]; 7] = [
    [61, 89, 65],
    [119, 136, 104],
    [181, 185, 145],
    [246, 237, 189],
    [237, 187, 138],
    [222, 138, 90],
    [202, 86, 44],
];