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

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

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

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

static BLUYL_PALETTE_COLORS: [[u8; 3]; 7] = [
    [247, 254, 174],
    [183, 230, 165],
    [124, 203, 162],
    [70, 174, 160],
    [8, 144, 153],
    [0, 113, 139],
    [4, 82, 117],
];