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 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
impl Copy for Color
[src]
impl Eq for Color
[src]
impl Hash for Color
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more