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

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

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

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

static PINKYL_PALETTE_COLORS: [[u8; 3]; 7] = [
    [254, 246, 181],
    [255, 221, 154],
    [255, 194, 133],
    [255, 166, 121],
    [250, 138, 118],
    [241, 109, 122],
    [225, 83, 131],
];