Struct dotrix_egui::Color32 [−]
pub struct Color32(_);
Expand description
Implementations
impl Color32
impl Color32
pub const TRANSPARENT: Color32
pub const LIGHT_GRAY: Color32
pub const LIGHT_BLUE: Color32
pub const DEBUG_COLOR: Color32
pub const fn from_rgb_additive(r: u8, g: u8, b: u8) -> Color32
From sRGBA
with premultiplied alpha.
From sRGBA
WITHOUT premultiplied alpha.
👎 Deprecated:
Use from_rgb(..), from_rgba_premultiplied(..) or from_srgba_unmultiplied(..)
pub const fn from_black_alpha(a: u8) -> Color32
pub fn from_white_alpha(a: u8) -> Color32
pub const fn from_additive_luminance(l: u8) -> Color32
pub fn linear_multiply(self, factor: f32) -> Color32
pub fn linear_multiply(self, factor: f32) -> Color32
Multiply with 0.5 to make color half as opaque.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Color32
impl UnwindSafe for Color32
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more