mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Support additive colors in color picker
This commit is contained in:
@@ -109,7 +109,7 @@ impl Painter {
|
||||
.chunks(texture.width as usize)
|
||||
.map(|row| {
|
||||
row.iter()
|
||||
.map(|&a| Color32::white_alpha(a).to_tuple())
|
||||
.map(|&a| Color32::from_white_alpha(a).to_tuple())
|
||||
.collect()
|
||||
})
|
||||
.collect();
|
||||
|
||||
Reference in New Issue
Block a user