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

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

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

/// Original 12-color discrete palette.
pub const PASTEL_PALETTE: DiscretePalette = DiscretePalette {
    meta: ColormapMeta {
        name: "Pastel",
        collection: "cartocolors",
        author: "CARTO",
        kind: ColormapKind::Qualitative,
        perceptually_uniform: false,
        cvd_friendly: false,
        grayscale_safe: false,
        lut_size: 12,
        citation: "CARTO. CartoColor. carto.com/carto-colors",
    },
    colors: &PASTEL_PALETTE_COLORS,
};

static PASTEL_PALETTE_COLORS: [[u8; 3]; 12] = [
    [102, 197, 204],
    [246, 207, 113],
    [248, 156, 116],
    [220, 176, 242],
    [135, 197, 95],
    [158, 185, 243],
    [254, 136, 177],
    [201, 219, 116],
    [139, 224, 164],
    [180, 151, 231],
    [211, 180, 132],
    [179, 179, 179],
];