1
0
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:
Emil Ernerfeldt
2021-01-03 18:03:11 +01:00
parent 5c8df6925d
commit 10a23d18e1
17 changed files with 239 additions and 106 deletions

View File

@@ -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();