bevy/crates/bevy_color
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
..
crates/gen_tests bevy_color: Added Xyza Colour Space (#12079) 2024-02-24 18:49:51 +00:00
src Simplified bevy_color Srgba hex string parsing (#12082) 2024-02-25 15:20:47 +00:00
Cargo.toml Upstreaming bevy_color. (#12013) 2024-02-23 17:51:31 +00:00