1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Improve color picker cache (#886)

* colorpicker: try to maintain hue even when saturation goes to zero
* More consistent arguments to color types
* implement `Hash` for `Rgba`.
This commit is contained in:
Emil Ernerfeldt
2021-11-07 21:11:42 +01:00
committed by GitHub
parent ddd5f6f4f6
commit 951ee4e142
6 changed files with 148 additions and 55 deletions

View File

@@ -156,7 +156,7 @@ impl ColorTest {
ui,
tex_allocator,
RED,
(TRANSPARENT, Color32::from_rgba_premultiplied(0, 0, 255, 0)),
(TRANSPARENT, Color32::from_rgb_additive(0, 0, 255)),
);
ui.separator();