H A D | color.rs | 20 pub const fn rgba(r: u8, g: u8, b: u8, a: u8) -> Self { in rgba() 22 data: ((a as u32) << 24) | ((r as u32) << 16) | (g as u32) << 8 | (b as u32), in rgba() 42 pub fn a(&self) -> u8 { in a() method 51 let a = Color::value_interpolate(from_color.r(), to_color.r(), scale); in interpolate() localVariable 52 Color::rgba(r, g, b, a) in interpolate() 62 [self.r(), self.g(), self.b(), self.a()] 67 [self.b(), self.g(), self.r(), self.a()]
|