1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! A collection of popular color palettes, with utilities interacting with them.
//!
//! ## Creating palettes
//!
//! The palette! macro is available for generating additional colour palettes with
//! convenience methods:
//!
//! ```rust
//! use weirdboi_bevy_colour::palette;
//!
//!
//! palette!(MyNewPalette {
//! "someColor": (0.5, 0.5, 0.5),
//! "anotherColor": (0.75, 0.23, 0.0),
//! });
//!
//! // Access by constant:
//! MyNewPalette::SOME_COLOR;
//!
//! // Access by method:
//! MyNewPalette::some_color();
//!
//! // Look up colour by case and format insensitive name:
//! assert_eq!(MyNewPalette::get("someColor"), MyNewPalette::get("SOME_COLOR"));
//!
//! // Iterate over all the colours in a palette:
//! for color in &MyNewPalette {
//! // color is a bevy::color::Color instance
//! println!("{:?}", color);
//! }
//! ```
//!
//! ## Using existing palettes
//!
//! `weirdboi_bevy_colour` provides a collection of popular colour palettes, including:
//! - [Nanner Pancakes](https://lospec.com/palette-list/nanner-pancakes)
//! - [Resurrect 64](https://lospec.com/palette-list/resurrect-64)
//! - [Resurrect 32](https://lospec.com/palette-list/resurrect-32)
//! - [Dawnbringer 16](https://lospec.com/palette-list/dawnbringer-16)
//! - [Dawnbringer 32](https://lospec.com/palette-list/dawnbringer-32)
//!
//! ## What is each colour?
//!
//! If you want to see a preview of each colour, check the rustdoc for each palette. The doc for
//! the palette will contain a grid of available colours, and each colour constant will contain
//! a colour bar.
pub use palette;
pub use ;
pub use NannerPancakes;
pub use ;