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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user