bevy/crates/bevy_render
Afonso Lage bc2ddce432
Simplified bevy_color Srgba hex string parsing (#12082)
# Objective

- Simplify `Srgba` hex string parsing using std hex parsing functions
and removing loops in favor of bitwise ops.

This is a follow-up of the `bevy_color` upstream PR review:
https://github.com/bevyengine/bevy/pull/12013#discussion_r1497408114

## Solution

- Reworked `Srgba::hex` to use  `from_str_radix` and some bitwise ops;

---------

Co-authored-by: Rob Parrett <robparrett@gmail.com>
2024-02-25 15:20:47 +00:00
..
macros Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
src Simplified bevy_color Srgba hex string parsing (#12082) 2024-02-25 15:20:47 +00:00
Cargo.toml Check cfg during CI and fix feature typos (#12103) 2024-02-25 15:19:27 +00:00