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

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

static ANTIQUE_LUT: [[u8; 3]; 256] = [
    [133, 92, 117],
    [137, 96, 117],
    [140, 99, 116],
    [144, 103, 116],
    [147, 106, 115],
    [151, 110, 115],
    [155, 113, 114],
    [158, 117, 114],
    [162, 121, 114],
    [166, 124, 113],
    [169, 128, 113],
    [173, 131, 112],
    [176, 135, 112],
    [180, 139, 111],
    [184, 142, 111],
    [187, 146, 111],
    [191, 149, 110],
    [195, 153, 110],
    [198, 156, 109],
    [202, 160, 109],
    [205, 164, 108],
    [209, 167, 108],
    [213, 171, 108],
    [216, 174, 107],
    [216, 172, 106],
    [214, 169, 106],
    [212, 166, 105],
    [210, 163, 104],
    [208, 159, 103],
    [206, 156, 102],
    [205, 153, 101],
    [203, 150, 101],
    [201, 146, 100],
    [199, 143, 99],
    [197, 140, 98],
    [196, 137, 97],
    [194, 134, 96],
    [192, 130, 96],
    [190, 127, 95],
    [188, 124, 94],
    [187, 121, 93],
    [185, 117, 92],
    [183, 114, 92],
    [181, 111, 91],
    [179, 108, 90],
    [177, 104, 89],
    [176, 101, 88],
    [173, 100, 88],
    [171, 101, 87],
    [168, 101, 87],
    [166, 102, 86],
    [163, 102, 86],
    [160, 103, 85],
    [158, 103, 85],
    [155, 104, 84],
    [153, 104, 84],
    [150, 105, 83],
    [147, 105, 82],
    [145, 106, 82],
    [142, 106, 81],
    [140, 106, 81],
    [137, 107, 80],
    [135, 107, 80],
    [132, 108, 79],
    [129, 108, 79],
    [127, 109, 78],
    [124, 109, 78],
    [122, 110, 77],
    [119, 110, 77],
    [116, 111, 76],
    [114, 111, 77],
    [113, 111, 79],
    [112, 110, 82],
    [110, 110, 84],
    [109, 110, 87],
    [107, 110, 89],
    [106, 110, 91],
    [104, 109, 94],
    [103, 109, 96],
    [102, 109, 98],
    [100, 109, 101],
    [99, 109, 103],
    [97, 108, 106],
    [96, 108, 108],
    [94, 108, 110],
    [93, 108, 113],
    [92, 107, 115],
    [90, 107, 117],
    [89, 107, 120],
    [87, 107, 122],
    [86, 107, 125],
    [84, 106, 127],
    [83, 106, 129],
    [82, 106, 131],
    [83, 105, 130],
    [84, 104, 130],
    [84, 103, 129],
    [85, 102, 129],
    [86, 101, 128],
    [86, 100, 128],
    [87, 99, 127],
    [88, 98, 127],
    [88, 97, 126],
    [89, 96, 126],
    [90, 95, 125],
    [90, 94, 125],
    [91, 93, 124],
    [92, 92, 124],
    [93, 91, 123],
    [93, 90, 123],
    [94, 89, 122],
    [95, 88, 122],
    [95, 87, 121],
    [96, 86, 121],
    [97, 85, 120],
    [97, 84, 119],
    [98, 83, 119],
    [98, 85, 118],
    [99, 88, 117],
    [99, 90, 115],
    [99, 92, 114],
    [99, 94, 113],
    [100, 96, 112],
    [100, 98, 111],
    [100, 100, 110],
    [100, 103, 108],
    [101, 105, 107],
    [101, 107, 106],
    [101, 109, 105],
    [101, 111, 104],
    [102, 113, 103],
    [102, 116, 101],
    [102, 118, 100],
    [102, 120, 99],
    [103, 122, 98],
    [103, 124, 97],
    [103, 126, 96],
    [103, 128, 94],
    [104, 131, 93],
    [104, 133, 92],
    [106, 134, 92],
    [108, 135, 92],
    [111, 136, 92],
    [113, 137, 92],
    [115, 138, 92],
    [117, 139, 93],
    [119, 140, 93],
    [122, 141, 93],
    [124, 142, 93],
    [126, 143, 93],
    [128, 144, 93],
    [131, 145, 93],
    [133, 146, 93],
    [135, 147, 93],
    [137, 148, 93],
    [140, 149, 93],
    [142, 150, 93],
    [144, 151, 94],
    [146, 152, 94],
    [149, 153, 94],
    [151, 154, 94],
    [153, 155, 94],
    [155, 156, 94],
    [156, 154, 95],
    [156, 152, 96],
    [156, 149, 97],
    [157, 147, 98],
    [157, 144, 99],
    [157, 141, 100],
    [157, 139, 101],
    [157, 136, 102],
    [158, 134, 103],
    [158, 131, 104],
    [158, 129, 106],
    [158, 126, 107],
    [158, 124, 108],
    [158, 121, 109],
    [159, 119, 110],
    [159, 116, 111],
    [159, 113, 112],
    [159, 111, 113],
    [159, 108, 114],
    [159, 106, 115],
    [160, 103, 116],
    [160, 101, 117],
    [160, 98, 119],
    [160, 98, 118],
    [159, 99, 117],
    [158, 100, 116],
    [157, 101, 115],
    [156, 102, 114],
    [155, 103, 113],
    [154, 103, 112],
    [153, 104, 111],
    [153, 105, 109],
    [152, 106, 108],
    [151, 107, 107],
    [150, 108, 106],
    [149, 109, 105],
    [148, 110, 104],
    [147, 111, 103],
    [147, 112, 102],
    [146, 113, 100],
    [145, 114, 99],
    [144, 115, 98],
    [143, 116, 97],
    [142, 117, 96],
    [141, 118, 95],
    [141, 119, 94],
    [139, 120, 93],
    [136, 120, 95],
    [133, 119, 96],
    [130, 119, 97],
    [127, 119, 98],
    [124, 119, 99],
    [121, 119, 100],
    [118, 118, 102],
    [115, 118, 103],
    [112, 118, 104],
    [109, 118, 105],
    [106, 118, 106],
    [103, 117, 107],
    [100, 117, 109],
    [97, 117, 110],
    [94, 117, 111],
    [91, 116, 112],
    [88, 116, 113],
    [85, 116, 114],
    [82, 116, 116],
    [79, 116, 117],
    [75, 115, 118],
    [72, 115, 119],
    [70, 115, 120],
    [73, 115, 120],
    [75, 116, 120],
    [77, 116, 121],
    [80, 117, 121],
    [82, 117, 121],
    [84, 117, 121],
    [87, 118, 121],
    [89, 118, 121],
    [91, 119, 122],
    [94, 119, 122],
    [96, 119, 122],
    [98, 120, 122],
    [101, 120, 122],
    [103, 121, 122],
    [105, 121, 123],
    [108, 121, 123],
    [110, 122, 123],
    [112, 122, 123],
    [115, 122, 123],
    [117, 123, 123],
    [119, 123, 124],
    [122, 124, 124],
    [124, 124, 124],
];

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

static ANTIQUE_PALETTE_COLORS: [[u8; 3]; 12] = [
    [133, 92, 117],
    [217, 175, 107],
    [175, 100, 88],
    [115, 111, 76],
    [82, 106, 131],
    [98, 83, 119],
    [104, 133, 92],
    [156, 156, 94],
    [160, 97, 119],
    [140, 120, 93],
    [70, 115, 120],
    [124, 124, 124],
];