Struct flattiverse_connector::Color
source · Fields
red: f32
green: f32
blue: f32
alpha: f32
Implementations
sourceimpl Color
impl Color
pub fn new_transparent() -> Color
pub fn from_rgb(r: f32, g: f32, b: f32) -> Color
pub fn from_rgba(r: f32, g: f32, b: f32, a: f32) -> Color
pub fn from_hue(hue: f32) -> Result<Color, Error>
pub fn alpha(&self) -> f32
pub fn red(&self) -> f32
pub fn green(&self) -> f32
pub fn blue(&self) -> f32
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more