bevy/examples/ui
Rob Parrett fea6f9d915
Use floats mathed from 8-bit values in basic color palette (#12323)
# Objective

Addresses one of the side-notes in #12225.

Colors in the `basic` palette are inconsistent in a few ways:
- `CYAN` was named `AQUA` in the referenced spec. (an alias was added in
a later spec)
- Colors are defined with e.g. "half green" having a `g` value of `0.5`.
But any spec would have been based on 8-bit color, so `0x80 / 0xFF` or
`128 / 255` or ~`0.502`. This precision is likely meaningful when doing
color math/rounding.

## Solution

Regenerate the colors from
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=37563bedc8858033bd8b8380328c5230
2024-03-05 18:05:27 +00:00
..
borders.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
button.rs Decouple BackgroundColor from UiImage (#11165) 2024-03-03 21:35:50 +00:00
display_and_visibility.rs Decouple BackgroundColor from UiImage (#11165) 2024-03-03 21:35:50 +00:00
flex_layout.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
font_atlas_debug.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
grid.rs Use floats mathed from 8-bit values in basic color palette (#12323) 2024-03-05 18:05:27 +00:00
overflow.rs Decouple BackgroundColor from UiImage (#11165) 2024-03-03 21:35:50 +00:00
overflow_debug.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
relative_cursor_position.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
render_ui_to_texture.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
size_constraints.rs Decouple BackgroundColor from UiImage (#11165) 2024-03-03 21:35:50 +00:00
text.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
text_debug.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
text_wrap_debug.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
transparency_ui.rs Decouple BackgroundColor from UiImage (#11165) 2024-03-03 21:35:50 +00:00
ui.rs remove background color from UI example image (#12306) 2024-03-04 23:41:51 +00:00
ui_material.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
ui_scaling.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
ui_texture_atlas.rs Decouple BackgroundColor from UiImage (#11165) 2024-03-03 21:35:50 +00:00
ui_texture_atlas_slice.rs Slicing support for texture atlas (#12059) 2024-03-05 16:05:39 +00:00
ui_texture_slice.rs Slicing support for texture atlas (#12059) 2024-03-05 16:05:39 +00:00
viewport_debug.rs Use floats mathed from 8-bit values in basic color palette (#12323) 2024-03-05 18:05:27 +00:00
window_fallthrough.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
z_index.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00