mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Improve text redering and do all color operation in gamma space (#2071)
This commit is contained in:
@@ -326,7 +326,7 @@ impl Rgba {
|
||||
/// Transparent white
|
||||
#[inline(always)]
|
||||
pub fn from_white_alpha(a: f32) -> Self {
|
||||
crate::epaint_assert!(0.0 <= a && a <= 1.0);
|
||||
crate::epaint_assert!(0.0 <= a && a <= 1.0, "a: {}", a);
|
||||
Self([a, a, a, a])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user