prismatica 1.0.0

308 scientific colormaps as compile-time Rust constants
Documentation
// Auto-generated by prismatica xtask -- do not edit
use crate::{Colormap, ColormapKind, ColormapMeta, DiscretePalette};

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

static SUNSET_LUT: [[u8; 3]; 256] = [
    [243, 231, 155],
    [243, 230, 154],
    [243, 229, 154],
    [243, 229, 153],
    [244, 228, 153],
    [244, 227, 152],
    [244, 226, 152],
    [244, 225, 151],
    [244, 224, 151],
    [244, 224, 150],
    [245, 223, 150],
    [245, 222, 149],
    [245, 221, 149],
    [245, 220, 148],
    [245, 219, 147],
    [245, 219, 147],
    [246, 218, 146],
    [246, 217, 146],
    [246, 216, 145],
    [246, 215, 145],
    [246, 215, 144],
    [246, 214, 144],
    [247, 213, 143],
    [247, 212, 143],
    [247, 211, 142],
    [247, 210, 141],
    [247, 210, 141],
    [247, 209, 140],
    [248, 208, 140],
    [248, 207, 139],
    [248, 206, 139],
    [248, 205, 138],
    [248, 205, 138],
    [248, 204, 137],
    [249, 203, 137],
    [249, 202, 136],
    [249, 201, 136],
    [249, 201, 135],
    [249, 200, 134],
    [249, 199, 134],
    [250, 198, 133],
    [250, 197, 133],
    [250, 196, 132],
    [250, 196, 132],
    [250, 195, 132],
    [250, 194, 132],
    [250, 193, 132],
    [250, 192, 131],
    [250, 191, 131],
    [250, 190, 131],
    [250, 190, 131],
    [250, 189, 131],
    [250, 188, 131],
    [250, 187, 131],
    [249, 186, 130],
    [249, 185, 130],
    [249, 185, 130],
    [249, 184, 130],
    [249, 183, 130],
    [249, 182, 130],
    [249, 181, 130],
    [249, 180, 129],
    [249, 179, 129],
    [249, 179, 129],
    [249, 178, 129],
    [249, 177, 129],
    [249, 176, 129],
    [249, 175, 129],
    [249, 174, 128],
    [249, 174, 128],
    [249, 173, 128],
    [249, 172, 128],
    [249, 171, 128],
    [249, 170, 128],
    [249, 169, 128],
    [248, 168, 127],
    [248, 168, 127],
    [248, 167, 127],
    [248, 166, 127],
    [248, 165, 127],
    [248, 164, 127],
    [248, 163, 127],
    [248, 163, 126],
    [248, 162, 126],
    [248, 161, 126],
    [248, 160, 126],
    [248, 159, 126],
    [247, 158, 126],
    [247, 158, 127],
    [247, 157, 127],
    [246, 156, 127],
    [246, 155, 127],
    [246, 155, 127],
    [246, 154, 128],
    [245, 153, 128],
    [245, 152, 128],
    [245, 151, 128],
    [244, 151, 128],
    [244, 150, 128],
    [244, 149, 129],
    [243, 148, 129],
    [243, 148, 129],
    [243, 147, 129],
    [242, 146, 129],
    [242, 145, 130],
    [242, 144, 130],
    [242, 144, 130],
    [241, 143, 130],
    [241, 142, 130],
    [241, 141, 131],
    [240, 141, 131],
    [240, 140, 131],
    [240, 139, 131],
    [239, 138, 131],
    [239, 137, 131],
    [239, 137, 132],
    [239, 136, 132],
    [238, 135, 132],
    [238, 134, 132],
    [238, 134, 132],
    [237, 133, 133],
    [237, 132, 133],
    [237, 131, 133],
    [236, 130, 133],
    [236, 130, 133],
    [236, 129, 134],
    [235, 128, 134],
    [235, 127, 134],
    [235, 127, 134],
    [234, 126, 134],
    [233, 126, 135],
    [233, 125, 135],
    [232, 124, 135],
    [231, 124, 136],
    [231, 123, 136],
    [230, 123, 136],
    [229, 122, 137],
    [229, 121, 137],
    [228, 121, 137],
    [227, 120, 138],
    [226, 120, 138],
    [226, 119, 138],
    [225, 118, 138],
    [224, 118, 139],
    [224, 117, 139],
    [223, 117, 139],
    [222, 116, 140],
    [222, 116, 140],
    [221, 115, 140],
    [220, 114, 141],
    [220, 114, 141],
    [219, 113, 141],
    [218, 113, 141],
    [218, 112, 142],
    [217, 111, 142],
    [216, 111, 142],
    [216, 110, 143],
    [215, 110, 143],
    [214, 109, 143],
    [214, 108, 144],
    [213, 108, 144],
    [212, 107, 144],
    [211, 107, 145],
    [211, 106, 145],
    [210, 106, 145],
    [209, 105, 145],
    [209, 104, 146],
    [208, 104, 146],
    [207, 103, 146],
    [207, 103, 147],
    [206, 102, 147],
    [205, 102, 147],
    [204, 101, 148],
    [203, 101, 148],
    [202, 101, 148],
    [201, 100, 149],
    [200, 100, 149],
    [198, 100, 149],
    [197, 100, 149],
    [196, 99, 150],
    [195, 99, 150],
    [194, 99, 150],
    [193, 98, 151],
    [192, 98, 151],
    [191, 98, 151],
    [190, 97, 152],
    [189, 97, 152],
    [188, 97, 152],
    [187, 96, 153],
    [185, 96, 153],
    [184, 96, 153],
    [183, 96, 153],
    [182, 95, 154],
    [181, 95, 154],
    [180, 95, 154],
    [179, 94, 155],
    [178, 94, 155],
    [177, 94, 155],
    [176, 93, 156],
    [175, 93, 156],
    [174, 93, 156],
    [172, 93, 156],
    [171, 92, 157],
    [170, 92, 157],
    [169, 92, 157],
    [168, 91, 158],
    [167, 91, 158],
    [166, 91, 158],
    [165, 90, 159],
    [164, 90, 159],
    [163, 90, 159],
    [162, 89, 160],
    [161, 89, 160],
    [159, 89, 160],
    [158, 89, 160],
    [156, 89, 160],
    [154, 89, 160],
    [153, 88, 161],
    [151, 88, 161],
    [150, 88, 161],
    [148, 88, 161],
    [146, 88, 161],
    [145, 88, 161],
    [143, 88, 161],
    [142, 87, 161],
    [140, 87, 161],
    [138, 87, 162],
    [137, 87, 162],
    [135, 87, 162],
    [134, 87, 162],
    [132, 87, 162],
    [130, 86, 162],
    [129, 86, 162],
    [127, 86, 162],
    [126, 86, 163],
    [124, 86, 163],
    [122, 86, 163],
    [121, 86, 163],
    [119, 85, 163],
    [118, 85, 163],
    [116, 85, 163],
    [114, 85, 163],
    [113, 85, 163],
    [111, 85, 164],
    [110, 85, 164],
    [108, 84, 164],
    [106, 84, 164],
    [105, 84, 164],
    [103, 84, 164],
    [102, 84, 164],
    [100, 84, 164],
    [98, 84, 165],
    [97, 83, 165],
    [95, 83, 165],
    [94, 83, 165],
    [92, 83, 165],
];

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

static SUNSET_PALETTE_COLORS: [[u8; 3]; 7] = [
    [243, 231, 155],
    [250, 196, 132],
    [248, 160, 126],
    [235, 127, 134],
    [206, 102, 147],
    [160, 89, 160],
    [92, 83, 165],
];