mirror of
https://github.com/bevyengine/bevy
synced 2024-11-23 05:03:47 +00:00
1d29f8e6f6
Added a Grey trait to allow colors to create a generic "grey" color. This currently assumes the color spaces follow the same gradient, which I'm pretty sure isn't true, but it should make a "grey-ish" color relative to the provided intensity. # Objective - Implements #13206 ## Solution - A small `Grey` trait was added and implemented for the common color kinds. ## Testing - Currently untested, unit tests exposed the non-linear relation between colors. I am debating adding an example to show this, as I have no idea what color space represents what relation of grey, and I figure others may be similarly confused. ## Changelog - The `Grey` trait was added, and the corresponding `grey` ## BREAKING CHANGES The const qualifier for LinearRGBA::gray was removed (the symbol still exists via a trait, it's just not const anymore) |
||
---|---|---|
.. | ||
crates/gen_tests | ||
docs | ||
src | ||
Cargo.toml | ||
README.md |