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

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

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

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

static AG_GRNYL_PALETTE_COLORS: [[u8; 3]; 7] = [
    [36, 86, 104],
    [15, 114, 121],
    [13, 143, 129],
    [57, 171, 126],
    [110, 197, 116],
    [169, 220, 103],
    [237, 239, 93],
];