mirror of
https://github.com/bevyengine/bevy
synced 2024-12-24 20:13:07 +00:00
d67fbd5e90
# Objective - We need to check multiple times if a color is fully transparent, e.g. for performance optimizations. - Make code more readable. - Reduce code duplication, to simplify making changes if needed (e.g. if we need to take floating point weirdness into account later on). ## Solution - Introduce a new `Color::is_fully_transparent` helper function to determine if the alpha of a color is 0. - Use the helper function in our UI rendering code. --- ## Changelog - Added `Color::is_fully_transparent` helper function. --------- Co-authored-by: François <mockersf@gmail.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |