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

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

/// Original 7-color discrete palette.
pub const AG_SUNSET_PALETTE: DiscretePalette = DiscretePalette {
    meta: ColormapMeta {
        name: "ag_Sunset",
        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_SUNSET_PALETTE_COLORS,
};

static AG_SUNSET_PALETTE_COLORS: [[u8; 3]; 7] = [
    [75, 41, 145],
    [135, 44, 162],
    [192, 54, 157],
    [234, 79, 136],
    [250, 120, 118],
    [246, 169, 122],
    [237, 217, 163],
];