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

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

static TEALROSE_LUT: [[u8; 3]; 256] = [
    [0, 147, 146],
    [3, 148, 146],
    [5, 148, 147],
    [8, 149, 147],
    [11, 149, 147],
    [13, 150, 148],
    [16, 150, 148],
    [19, 151, 148],
    [21, 151, 149],
    [24, 152, 149],
    [27, 152, 150],
    [30, 153, 150],
    [32, 153, 150],
    [35, 154, 151],
    [38, 155, 151],
    [40, 155, 151],
    [43, 156, 152],
    [46, 156, 152],
    [48, 157, 152],
    [51, 157, 153],
    [54, 158, 153],
    [56, 158, 153],
    [59, 159, 154],
    [62, 159, 154],
    [64, 160, 154],
    [67, 161, 155],
    [70, 161, 155],
    [72, 162, 156],
    [75, 162, 156],
    [78, 163, 156],
    [80, 163, 157],
    [83, 164, 157],
    [86, 164, 157],
    [89, 165, 158],
    [91, 165, 158],
    [94, 166, 158],
    [97, 166, 159],
    [99, 167, 159],
    [102, 168, 159],
    [105, 168, 160],
    [107, 169, 160],
    [110, 169, 160],
    [113, 170, 161],
    [115, 170, 161],
    [116, 171, 162],
    [118, 172, 162],
    [119, 172, 162],
    [121, 173, 163],
    [122, 174, 163],
    [124, 174, 164],
    [125, 175, 164],
    [127, 176, 165],
    [128, 176, 165],
    [130, 177, 165],
    [131, 178, 166],
    [133, 179, 166],
    [134, 179, 167],
    [135, 180, 167],
    [137, 181, 168],
    [138, 181, 168],
    [140, 182, 168],
    [141, 183, 169],
    [143, 183, 169],
    [144, 184, 170],
    [146, 185, 170],
    [147, 185, 171],
    [149, 186, 171],
    [150, 187, 171],
    [152, 187, 172],
    [153, 188, 172],
    [155, 189, 173],
    [156, 189, 173],
    [158, 190, 173],
    [159, 191, 174],
    [161, 191, 174],
    [162, 192, 175],
    [164, 193, 175],
    [165, 194, 176],
    [167, 194, 176],
    [168, 195, 176],
    [170, 196, 177],
    [171, 196, 177],
    [173, 197, 178],
    [174, 198, 178],
    [176, 198, 179],
    [177, 199, 179],
    [179, 200, 179],
    [180, 201, 180],
    [182, 201, 180],
    [183, 202, 181],
    [185, 203, 181],
    [186, 204, 182],
    [188, 205, 182],
    [189, 206, 183],
    [191, 206, 183],
    [192, 207, 184],
    [194, 208, 184],
    [195, 209, 185],
    [197, 210, 185],
    [198, 211, 186],
    [200, 211, 186],
    [201, 212, 187],
    [203, 213, 187],
    [204, 214, 188],
    [206, 215, 188],
    [207, 215, 189],
    [209, 216, 189],
    [210, 217, 190],
    [212, 218, 190],
    [213, 219, 191],
    [215, 220, 191],
    [216, 220, 192],
    [218, 221, 192],
    [219, 222, 193],
    [221, 223, 193],
    [222, 224, 194],
    [224, 225, 194],
    [225, 225, 195],
    [227, 226, 195],
    [228, 227, 196],
    [230, 228, 196],
    [231, 229, 197],
    [233, 229, 197],
    [234, 230, 198],
    [236, 231, 198],
    [237, 232, 199],
    [239, 233, 199],
    [240, 234, 200],
    [241, 233, 200],
    [241, 232, 199],
    [240, 231, 198],
    [240, 230, 198],
    [240, 229, 197],
    [239, 228, 197],
    [239, 227, 196],
    [239, 225, 195],
    [239, 224, 195],
    [238, 223, 194],
    [238, 222, 193],
    [238, 221, 193],
    [237, 220, 192],
    [237, 218, 191],
    [237, 217, 191],
    [237, 216, 190],
    [236, 215, 190],
    [236, 214, 189],
    [236, 213, 188],
    [235, 212, 188],
    [235, 210, 187],
    [235, 209, 186],
    [235, 208, 186],
    [234, 207, 185],
    [234, 206, 184],
    [234, 205, 184],
    [234, 203, 183],
    [233, 202, 183],
    [233, 201, 182],
    [233, 200, 181],
    [232, 199, 181],
    [232, 198, 180],
    [232, 197, 179],
    [232, 195, 179],
    [231, 194, 178],
    [231, 193, 177],
    [231, 192, 177],
    [230, 191, 176],
    [230, 190, 176],
    [230, 188, 175],
    [230, 187, 174],
    [229, 186, 174],
    [229, 185, 173],
    [229, 184, 172],
    [228, 183, 172],
    [228, 182, 171],
    [228, 180, 171],
    [228, 179, 170],
    [227, 178, 169],
    [227, 177, 169],
    [227, 176, 168],
    [226, 175, 168],
    [226, 174, 167],
    [226, 173, 167],
    [226, 171, 166],
    [225, 170, 165],
    [225, 169, 165],
    [225, 168, 164],
    [224, 167, 164],
    [224, 166, 163],
    [224, 165, 162],
    [224, 164, 162],
    [223, 162, 161],
    [223, 161, 161],
    [223, 160, 160],
    [223, 159, 159],
    [222, 158, 159],
    [222, 157, 158],
    [222, 156, 158],
    [221, 155, 157],
    [221, 153, 157],
    [221, 152, 156],
    [221, 151, 155],
    [220, 150, 155],
    [220, 149, 154],
    [220, 148, 154],
    [219, 147, 153],
    [219, 145, 152],
    [219, 144, 152],
    [219, 143, 151],
    [218, 142, 151],
    [218, 141, 150],
    [218, 140, 149],
    [217, 139, 149],
    [217, 138, 148],
    [217, 136, 148],
    [217, 135, 147],
    [216, 134, 147],
    [216, 133, 146],
    [216, 132, 146],
    [216, 131, 145],
    [216, 130, 145],
    [215, 128, 144],
    [215, 127, 144],
    [215, 126, 143],
    [215, 125, 143],
    [215, 124, 142],
    [214, 123, 142],
    [214, 121, 141],
    [214, 120, 140],
    [214, 119, 140],
    [214, 118, 139],
    [213, 117, 139],
    [213, 116, 138],
    [213, 115, 138],
    [213, 113, 137],
    [212, 112, 137],
    [212, 111, 136],
    [212, 110, 136],
    [212, 109, 135],
    [212, 108, 135],
    [211, 106, 134],
    [211, 105, 134],
    [211, 104, 133],
    [211, 103, 133],
    [211, 102, 132],
    [210, 101, 132],
    [210, 100, 131],
    [210, 98, 131],
    [210, 97, 130],
    [209, 96, 130],
    [209, 95, 129],
    [209, 94, 129],
    [209, 93, 128],
    [209, 91, 128],
    [208, 90, 127],
    [208, 89, 127],
    [208, 88, 126],
];

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

static TEALROSE_PALETTE_COLORS: [[u8; 3]; 7] = [
    [0, 147, 146],
    [114, 170, 161],
    [177, 199, 179],
    [241, 234, 200],
    [229, 185, 173],
    [217, 137, 148],
    [208, 88, 126],
];