bevy/crates/bevy_color
Alice Cecile 2fbb4c68ae
Define a prelude for bevy_color, and add it to bevy_internal (#12158)
# Objective

As we start to migrate to `bevy_color` in earnest (#12056), we should
make it visible to Bevy users, and usable in examples.

## Solution

1. Add a prelude to `bevy_color`: I've only excluded the rarely used
`ColorRange` type and the testing-focused color distance module. I
definitely think that some color spaces are less useful than others to
end users, but at the same time the types used there are very unlikely
to conflict with user-facing types.
2. Add `bevy_color` to `bevy_internal` as an optional crate.
3. Re-export `bevy_color`'s prelude as part of `bevy::prelude`.

---------

Co-authored-by: Alice Cecile <alice.i.cecil@gmail.com>
2024-02-27 17:04:56 +00:00
..
crates/gen_tests bevy_color: Add Laba to support Lab Color Model (#12115) 2024-02-26 22:30:50 +00:00
docs bevy_color: Added Color Conversion Mermaid Diagram (#12147) 2024-02-27 06:03:34 +00:00
src Define a prelude for bevy_color, and add it to bevy_internal (#12158) 2024-02-27 17:04:56 +00:00
Cargo.toml Use LinearRgba in bevy_gizmos internals (#12128) 2024-02-26 23:50:33 +00:00