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

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

static PRISM_LUT: [[u8; 3]; 256] = [
    [95, 70, 144],
    [92, 72, 144],
    [89, 73, 145],
    [86, 75, 145],
    [84, 76, 145],
    [81, 78, 145],
    [78, 79, 146],
    [75, 81, 146],
    [72, 82, 146],
    [69, 84, 146],
    [67, 85, 147],
    [64, 87, 147],
    [61, 88, 147],
    [58, 90, 147],
    [55, 91, 148],
    [52, 93, 148],
    [49, 94, 148],
    [47, 96, 148],
    [44, 97, 149],
    [41, 99, 149],
    [38, 100, 149],
    [35, 102, 149],
    [32, 103, 150],
    [30, 105, 150],
    [30, 107, 151],
    [31, 110, 151],
    [32, 112, 152],
    [33, 115, 152],
    [35, 118, 153],
    [36, 120, 154],
    [37, 123, 154],
    [38, 126, 155],
    [39, 128, 156],
    [40, 131, 156],
    [42, 133, 157],
    [43, 136, 158],
    [44, 139, 158],
    [45, 141, 159],
    [46, 144, 160],
    [47, 147, 160],
    [49, 149, 161],
    [50, 152, 162],
    [51, 155, 162],
    [52, 157, 163],
    [53, 160, 163],
    [54, 162, 164],
    [56, 165, 165],
    [55, 165, 163],
    [53, 164, 159],
    [51, 162, 156],
    [50, 161, 152],
    [48, 159, 149],
    [46, 158, 145],
    [44, 157, 142],
    [42, 155, 138],
    [41, 154, 135],
    [39, 152, 131],
    [37, 151, 128],
    [35, 149, 124],
    [34, 148, 121],
    [32, 147, 117],
    [30, 145, 114],
    [28, 144, 110],
    [27, 142, 107],
    [25, 141, 103],
    [23, 139, 100],
    [21, 138, 96],
    [20, 137, 93],
    [18, 135, 89],
    [16, 134, 86],
    [17, 134, 84],
    [21, 136, 83],
    [26, 137, 83],
    [30, 139, 82],
    [34, 141, 82],
    [39, 143, 81],
    [43, 145, 81],
    [47, 147, 80],
    [51, 148, 80],
    [56, 150, 79],
    [60, 152, 79],
    [64, 154, 78],
    [69, 156, 78],
    [73, 157, 77],
    [77, 159, 77],
    [82, 161, 76],
    [86, 163, 75],
    [90, 165, 75],
    [95, 166, 74],
    [99, 168, 74],
    [103, 170, 73],
    [108, 172, 73],
    [112, 174, 72],
    [116, 175, 71],
    [122, 175, 68],
    [127, 175, 66],
    [132, 175, 63],
    [137, 175, 60],
    [143, 175, 57],
    [148, 174, 55],
    [153, 174, 52],
    [159, 174, 49],
    [164, 174, 46],
    [169, 174, 44],
    [174, 174, 41],
    [180, 174, 38],
    [185, 174, 35],
    [190, 174, 33],
    [195, 174, 30],
    [201, 174, 27],
    [206, 174, 24],
    [211, 173, 22],
    [216, 173, 19],
    [222, 173, 16],
    [227, 173, 13],
    [232, 173, 11],
    [237, 173, 8],
    [236, 171, 8],
    [236, 169, 8],
    [235, 166, 8],
    [235, 164, 7],
    [234, 162, 7],
    [234, 160, 7],
    [233, 158, 7],
    [233, 156, 7],
    [232, 154, 7],
    [232, 152, 7],
    [231, 150, 7],
    [231, 147, 6],
    [230, 145, 6],
    [230, 143, 6],
    [229, 141, 6],
    [229, 139, 6],
    [228, 137, 6],
    [228, 135, 6],
    [227, 133, 6],
    [227, 131, 5],
    [226, 128, 5],
    [226, 126, 5],
    [225, 124, 5],
    [224, 122, 7],
    [223, 120, 10],
    [222, 118, 12],
    [221, 117, 15],
    [221, 115, 17],
    [220, 113, 20],
    [219, 111, 22],
    [218, 109, 24],
    [217, 107, 27],
    [216, 105, 29],
    [215, 103, 32],
    [214, 101, 34],
    [213, 99, 37],
    [212, 98, 39],
    [211, 96, 42],
    [211, 94, 44],
    [210, 92, 47],
    [209, 90, 49],
    [208, 88, 51],
    [207, 86, 54],
    [206, 84, 56],
    [205, 82, 59],
    [204, 81, 61],
    [202, 79, 64],
    [200, 78, 66],
    [197, 77, 68],
    [195, 75, 70],
    [193, 74, 72],
    [190, 73, 74],
    [188, 72, 76],
    [185, 71, 78],
    [183, 69, 80],
    [181, 68, 82],
    [178, 67, 84],
    [176, 66, 86],
    [173, 65, 88],
    [171, 63, 90],
    [168, 62, 92],
    [166, 61, 95],
    [164, 60, 97],
    [161, 59, 99],
    [159, 57, 101],
    [156, 56, 103],
    [154, 55, 105],
    [152, 54, 107],
    [149, 53, 109],
    [147, 52, 110],
    [146, 53, 110],
    [144, 53, 110],
    [142, 54, 110],
    [141, 54, 110],
    [139, 55, 110],
    [138, 55, 111],
    [136, 56, 111],
    [134, 56, 111],
    [133, 57, 111],
    [131, 57, 111],
    [130, 58, 111],
    [128, 58, 111],
    [126, 59, 111],
    [125, 60, 111],
    [123, 60, 111],
    [122, 61, 111],
    [120, 61, 112],
    [118, 62, 112],
    [117, 62, 112],
    [115, 63, 112],
    [114, 63, 112],
    [112, 64, 112],
    [112, 64, 113],
    [113, 65, 114],
    [115, 65, 116],
    [117, 66, 117],
    [119, 67, 119],
    [121, 67, 121],
    [123, 68, 122],
    [124, 68, 124],
    [126, 69, 125],
    [128, 70, 127],
    [130, 70, 129],
    [132, 71, 130],
    [133, 71, 132],
    [135, 72, 133],
    [137, 73, 135],
    [139, 73, 137],
    [141, 74, 138],
    [142, 74, 140],
    [144, 75, 141],
    [146, 76, 143],
    [148, 76, 145],
    [150, 77, 146],
    [152, 78, 148],
    [153, 78, 149],
    [150, 79, 147],
    [148, 80, 145],
    [146, 81, 143],
    [144, 82, 141],
    [142, 83, 138],
    [139, 84, 136],
    [137, 85, 134],
    [135, 86, 132],
    [133, 88, 130],
    [131, 89, 128],
    [128, 90, 126],
    [126, 91, 124],
    [124, 92, 122],
    [122, 93, 120],
    [120, 94, 118],
    [117, 95, 116],
    [115, 96, 114],
    [113, 97, 112],
    [111, 98, 110],
    [109, 99, 108],
    [106, 100, 106],
    [104, 101, 104],
    [102, 102, 102],
];

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

static PRISM_PALETTE_COLORS: [[u8; 3]; 12] = [
    [95, 70, 144],
    [29, 105, 150],
    [56, 166, 165],
    [15, 133, 84],
    [115, 175, 72],
    [237, 173, 8],
    [225, 124, 5],
    [204, 80, 62],
    [148, 52, 110],
    [111, 64, 112],
    [153, 78, 149],
    [102, 102, 102],
];