use std::borrow::Cow;
use crate::palettes::{ColorScheme, Palette};
pub struct MeasuredPaletteEntry {
pub id: &'static str,
pub palette: &'static Palette,
pub scheme: ColorScheme,
pub color_names: &'static [&'static str],
}
pub static CATALOG: &[MeasuredPaletteEntry] = &[
MeasuredPaletteEntry {
id: "SPECTRA_7_3_6COLOR",
palette: &SPECTRA_7_3_6COLOR,
scheme: ColorScheme::Bwgbry,
color_names: &["black", "white", "yellow", "red", "blue", "green"],
},
MeasuredPaletteEntry {
id: "SPECTRA_7_3_6COLOR_V2",
palette: &SPECTRA_7_3_6COLOR_V2,
scheme: ColorScheme::Bwgbry,
color_names: &["black", "white", "yellow", "red", "blue", "green"],
},
MeasuredPaletteEntry {
id: "MONO_4_26",
palette: &MONO_4_26,
scheme: ColorScheme::Mono,
color_names: &["black", "white"],
},
MeasuredPaletteEntry {
id: "BWRY_4_2",
palette: &BWRY_4_2,
scheme: ColorScheme::Bwry,
color_names: &["black", "white", "yellow", "red"],
},
MeasuredPaletteEntry {
id: "BWRY_3_97",
palette: &BWRY_3_97,
scheme: ColorScheme::Bwry,
color_names: &["black", "white", "yellow", "red"],
},
MeasuredPaletteEntry {
id: "SOLUM_BWR",
palette: &SOLUM_BWR,
scheme: ColorScheme::Bwr,
color_names: &["black", "white", "red"],
},
MeasuredPaletteEntry {
id: "HANSHOW_BWR",
palette: &HANSHOW_BWR,
scheme: ColorScheme::Bwr,
color_names: &["black", "white", "red"],
},
MeasuredPaletteEntry {
id: "HANSHOW_BWY",
palette: &HANSHOW_BWY,
scheme: ColorScheme::Bwy,
color_names: &["black", "white", "yellow"],
},
];
pub static SPECTRA_7_3_6COLOR: Palette = Palette {
colors: Cow::Borrowed(&[
[26, 13, 35], [185, 202, 205], [202, 184, 0], [121, 9, 0], [ 0, 69, 139], [ 40, 82, 57], ]),
accent_idx: 3, };
pub static SPECTRA_7_3_6COLOR_V2: Palette = Palette {
colors: Cow::Borrowed(&[
[ 31, 24, 41], [168, 180, 182], [180, 173, 0], [113, 24, 19], [ 36, 70, 139], [ 50, 84, 60], ]),
accent_idx: 3, };
pub static MONO_4_26: Palette = Palette {
colors: Cow::Borrowed(&[
[ 5, 5, 5], [220, 220, 220], ]),
accent_idx: 0,
};
pub static BWRY_4_2: Palette = Palette {
colors: Cow::Borrowed(&[
[ 5, 5, 5], [200, 200, 200], [200, 180, 0], [120, 15, 5], ]),
accent_idx: 3,
};
pub static BWRY_3_97: Palette = Palette {
colors: Cow::Borrowed(&[
[ 10, 7, 14], [173, 178, 174], [172, 128, 0], [ 85, 24, 14], ]),
accent_idx: 3,
};
pub static SOLUM_BWR: Palette = Palette {
colors: Cow::Borrowed(&[
[ 5, 5, 5],
[200, 200, 200],
[120, 15, 5],
]),
accent_idx: 2,
};
pub static HANSHOW_BWR: Palette = Palette {
colors: Cow::Borrowed(&[
[ 5, 5, 5],
[200, 200, 200],
[120, 15, 5],
]),
accent_idx: 2,
};
pub static HANSHOW_BWY: Palette = Palette {
colors: Cow::Borrowed(&[
[ 5, 5, 5],
[200, 200, 200],
[200, 180, 0],
]),
accent_idx: 2,
};