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

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

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

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

static PURP_PALETTE_COLORS: [[u8; 3]; 7] = [
    [243, 224, 247],
    [228, 199, 241],
    [209, 175, 232],
    [185, 152, 221],
    [159, 130, 206],
    [130, 109, 186],
    [99, 88, 159],
];