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

/// ArmyRose -- Diverging colormap from the cartocolors collection.
///
/// Author: CARTO
/// Perceptually uniform: false
/// CVD friendly: false
///
/// Citation: CARTO. CartoColor. carto.com/carto-colors
pub const ARMYROSE: Colormap = Colormap {
    meta: ColormapMeta {
        name: "ArmyRose",
        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: &ARMYROSE_LUT,
};

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

/// Original 7-color discrete palette.
pub const ARMYROSE_PALETTE: DiscretePalette = DiscretePalette {
    meta: ColormapMeta {
        name: "ArmyRose",
        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: &ARMYROSE_PALETTE_COLORS,
};

static ARMYROSE_PALETTE_COLORS: [[u8; 3]; 7] = [
    [121, 130, 52],
    [163, 173, 98],
    [208, 211, 162],
    [253, 251, 228],
    [240, 198, 195],
    [223, 145, 163],
    [212, 103, 128],
];