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

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

static TEAL_LUT: [[u8; 3]; 256] = [
    [209, 238, 234],
    [208, 238, 234],
    [207, 237, 233],
    [206, 237, 233],
    [205, 236, 232],
    [204, 236, 232],
    [203, 235, 232],
    [202, 235, 231],
    [201, 234, 231],
    [200, 234, 230],
    [199, 234, 230],
    [198, 233, 230],
    [197, 233, 229],
    [196, 232, 229],
    [195, 232, 228],
    [195, 231, 228],
    [194, 231, 228],
    [193, 230, 227],
    [192, 230, 227],
    [191, 230, 226],
    [190, 229, 226],
    [189, 229, 226],
    [188, 228, 225],
    [187, 228, 225],
    [186, 227, 224],
    [185, 227, 224],
    [184, 226, 224],
    [183, 226, 223],
    [182, 225, 223],
    [181, 225, 222],
    [180, 225, 222],
    [179, 224, 222],
    [178, 224, 221],
    [177, 223, 221],
    [176, 223, 220],
    [175, 222, 220],
    [174, 222, 220],
    [173, 221, 219],
    [172, 221, 219],
    [171, 221, 218],
    [170, 220, 218],
    [169, 220, 218],
    [168, 219, 217],
    [168, 219, 217],
    [167, 218, 216],
    [166, 218, 216],
    [165, 217, 216],
    [164, 217, 215],
    [163, 216, 215],
    [163, 215, 215],
    [162, 215, 214],
    [161, 214, 214],
    [160, 214, 213],
    [159, 213, 213],
    [159, 213, 213],
    [158, 212, 212],
    [157, 212, 212],
    [156, 211, 212],
    [155, 211, 211],
    [154, 210, 211],
    [154, 210, 210],
    [153, 209, 210],
    [152, 208, 210],
    [151, 208, 209],
    [150, 207, 209],
    [149, 207, 209],
    [149, 206, 208],
    [148, 206, 208],
    [147, 205, 207],
    [146, 205, 207],
    [145, 204, 207],
    [145, 204, 206],
    [144, 203, 206],
    [143, 202, 206],
    [142, 202, 205],
    [141, 201, 205],
    [140, 201, 204],
    [140, 200, 204],
    [139, 200, 204],
    [138, 199, 203],
    [137, 199, 203],
    [136, 198, 203],
    [135, 198, 202],
    [135, 197, 202],
    [134, 197, 201],
    [133, 196, 201],
    [132, 195, 201],
    [132, 195, 200],
    [131, 194, 200],
    [130, 194, 199],
    [130, 193, 199],
    [129, 192, 199],
    [128, 192, 198],
    [128, 191, 198],
    [127, 191, 197],
    [126, 190, 197],
    [125, 190, 197],
    [125, 189, 196],
    [124, 188, 196],
    [123, 188, 195],
    [123, 187, 195],
    [122, 187, 195],
    [121, 186, 194],
    [121, 185, 194],
    [120, 185, 193],
    [119, 184, 193],
    [119, 184, 193],
    [118, 183, 192],
    [117, 182, 192],
    [117, 182, 191],
    [116, 181, 191],
    [115, 181, 191],
    [115, 180, 190],
    [114, 180, 190],
    [113, 179, 189],
    [113, 178, 189],
    [112, 178, 189],
    [111, 177, 188],
    [110, 177, 188],
    [110, 176, 187],
    [109, 175, 187],
    [108, 175, 187],
    [108, 174, 186],
    [107, 174, 186],
    [106, 173, 185],
    [106, 172, 185],
    [105, 172, 185],
    [104, 171, 184],
    [104, 171, 184],
    [103, 170, 183],
    [103, 169, 183],
    [102, 169, 183],
    [101, 168, 182],
    [101, 168, 182],
    [100, 167, 181],
    [100, 166, 181],
    [99, 166, 180],
    [98, 165, 180],
    [98, 164, 180],
    [97, 164, 179],
    [97, 163, 179],
    [96, 162, 178],
    [95, 162, 178],
    [95, 161, 177],
    [94, 161, 177],
    [94, 160, 177],
    [93, 159, 176],
    [93, 159, 176],
    [92, 158, 175],
    [91, 157, 175],
    [91, 157, 174],
    [90, 156, 174],
    [90, 155, 174],
    [89, 155, 173],
    [88, 154, 173],
    [88, 154, 172],
    [87, 153, 172],
    [87, 152, 172],
    [86, 152, 171],
    [85, 151, 171],
    [85, 150, 170],
    [84, 150, 170],
    [84, 149, 169],
    [83, 148, 169],
    [83, 148, 169],
    [82, 147, 168],
    [81, 147, 168],
    [81, 146, 167],
    [80, 145, 167],
    [80, 145, 166],
    [79, 144, 166],
    [79, 143, 165],
    [78, 143, 165],
    [78, 142, 164],
    [77, 141, 164],
    [77, 141, 163],
    [76, 140, 163],
    [76, 139, 162],
    [75, 139, 162],
    [75, 138, 161],
    [74, 137, 161],
    [74, 136, 160],
    [73, 136, 160],
    [73, 135, 159],
    [72, 134, 158],
    [72, 134, 158],
    [71, 133, 157],
    [71, 132, 157],
    [71, 132, 156],
    [70, 131, 156],
    [70, 130, 155],
    [69, 130, 155],
    [69, 129, 154],
    [68, 128, 154],
    [68, 128, 153],
    [67, 127, 152],
    [67, 126, 152],
    [66, 126, 151],
    [66, 125, 151],
    [65, 124, 150],
    [65, 124, 150],
    [64, 123, 149],
    [64, 122, 149],
    [63, 121, 148],
    [63, 121, 148],
    [63, 120, 147],
    [62, 119, 147],
    [62, 119, 146],
    [61, 118, 145],
    [61, 117, 145],
    [60, 117, 144],
    [60, 116, 144],
    [59, 115, 143],
    [59, 115, 143],
    [58, 114, 142],
    [58, 113, 141],
    [58, 113, 141],
    [57, 112, 140],
    [57, 111, 140],
    [56, 111, 139],
    [56, 110, 138],
    [56, 109, 138],
    [55, 109, 137],
    [55, 108, 136],
    [54, 107, 136],
    [54, 106, 135],
    [54, 106, 134],
    [53, 105, 134],
    [53, 104, 133],
    [52, 104, 133],
    [52, 103, 132],
    [52, 102, 131],
    [51, 102, 131],
    [51, 101, 130],
    [50, 100, 129],
    [50, 100, 129],
    [50, 99, 128],
    [49, 98, 127],
    [49, 98, 127],
    [48, 97, 126],
    [48, 96, 126],
    [48, 96, 125],
    [47, 95, 124],
    [47, 94, 124],
    [46, 94, 123],
    [46, 93, 122],
    [46, 92, 122],
    [45, 91, 121],
    [45, 91, 120],
    [44, 90, 120],
    [44, 89, 119],
    [44, 89, 119],
    [43, 88, 118],
    [43, 87, 117],
    [42, 87, 117],
    [42, 86, 116],
];

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

static TEAL_PALETTE_COLORS: [[u8; 3]; 7] = [
    [209, 238, 234],
    [168, 219, 217],
    [133, 196, 201],
    [104, 171, 184],
    [79, 144, 166],
    [59, 115, 143],
    [42, 86, 116],
];