bevy_color/palettes/basic.rs
1//! Named colors from the CSS1 specification, also known as
2//! [basic colors](https://en.wikipedia.org/wiki/Web_colors#Basic_colors).
3//! This is the same set of colors used in the
4//! [VGA graphics standard](https://en.wikipedia.org/wiki/Video_Graphics_Array).
5
6use crate::Srgba;
7
8/// <div style="background-color: #00FFFF; width: 10px; padding: 10px; border: 1px solid;"></div>
9pub const AQUA: Srgba = Srgba::rgb(0.0, 1.0, 1.0);
10/// <div style="background-color: #000000; width: 10px; padding: 10px; border: 1px solid;"></div>
11pub const BLACK: Srgba = Srgba::rgb(0.0, 0.0, 0.0);
12/// <div style="background-color: #0000FF; width: 10px; padding: 10px; border: 1px solid;"></div>
13pub const BLUE: Srgba = Srgba::rgb(0.0, 0.0, 1.0);
14/// <div style="background-color: #FF00FF; width: 10px; padding: 10px; border: 1px solid;"></div>
15pub const FUCHSIA: Srgba = Srgba::rgb(1.0, 0.0, 1.0);
16/// <div style="background-color: #808080; width: 10px; padding: 10px; border: 1px solid;"></div>
17pub const GRAY: Srgba = Srgba::rgb(0.5019608, 0.5019608, 0.5019608);
18/// <div style="background-color: #008000; width: 10px; padding: 10px; border: 1px solid;"></div>
19pub const GREEN: Srgba = Srgba::rgb(0.0, 0.5019608, 0.0);
20/// <div style="background-color: #00FF00; width: 10px; padding: 10px; border: 1px solid;"></div>
21pub const LIME: Srgba = Srgba::rgb(0.0, 1.0, 0.0);
22/// <div style="background-color: #800000; width: 10px; padding: 10px; border: 1px solid;"></div>
23pub const MAROON: Srgba = Srgba::rgb(0.5019608, 0.0, 0.0);
24/// <div style="background-color: #000080; width: 10px; padding: 10px; border: 1px solid;"></div>
25pub const NAVY: Srgba = Srgba::rgb(0.0, 0.0, 0.5019608);
26/// <div style="background-color: #808000; width: 10px; padding: 10px; border: 1px solid;"></div>
27pub const OLIVE: Srgba = Srgba::rgb(0.5019608, 0.5019608, 0.0);
28/// <div style="background-color: #800080; width: 10px; padding: 10px; border: 1px solid;"></div>
29pub const PURPLE: Srgba = Srgba::rgb(0.5019608, 0.0, 0.5019608);
30/// <div style="background-color: #FF0000; width: 10px; padding: 10px; border: 1px solid;"></div>
31pub const RED: Srgba = Srgba::rgb(1.0, 0.0, 0.0);
32/// <div style="background-color: #C0C0C0; width: 10px; padding: 10px; border: 1px solid;"></div>
33pub const SILVER: Srgba = Srgba::rgb(0.7529412, 0.7529412, 0.7529412);
34/// <div style="background-color: #008080; width: 10px; padding: 10px; border: 1px solid;"></div>
35pub const TEAL: Srgba = Srgba::rgb(0.0, 0.5019608, 0.5019608);
36/// <div style="background-color: #FFFFFF; width: 10px; padding: 10px; border: 1px solid;"></div>
37pub const WHITE: Srgba = Srgba::rgb(1.0, 1.0, 1.0);
38/// <div style="background-color: #FFFF00; width: 10px; padding: 10px; border: 1px solid;"></div>
39pub const YELLOW: Srgba = Srgba::rgb(1.0, 1.0, 0.0);