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

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

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

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

static TEALGRN_PALETTE_COLORS: [[u8; 3]; 7] = [
    [176, 242, 188],
    [137, 232, 172],
    [103, 219, 165],
    [76, 200, 163],
    [56, 178, 163],
    [44, 152, 160],
    [37, 125, 152],
];