Struct leechbar::Color
[−]
[src]
pub struct Color { /* fields omitted */ }
RGBA color structure.
Methods
impl Color
[src]
fn new(red: u8, green: u8, blue: u8, alpha: u8) -> Self
[src]
Create a new color. This takes the RGBA values of the red, green, blue and alpha channel as a range from 0 to 255.
Examples
use leechbar::Color; // Create an opaque pink let color = Color::new(255, 0, 255, 255);
Trait Implementations
impl Copy for Color
[src]
impl Clone for Color
[src]
fn clone(&self) -> Color
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more