Struct turtle::color::Color
[−]
[src]
pub struct Color { pub red: f64, pub green: f64, pub blue: f64, pub alpha: f64, }
Fields
red: f64
green: f64
blue: f64
alpha: f64
Methods
impl Color
[src]
Trait Implementations
impl Debug 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
impl Copy for Color
[src]
impl PartialEq for Color
[src]
fn eq(&self, __arg_0: &Color) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Color) -> bool
[src]
This method tests for !=
.
impl Rand for Color
[src]
fn rand<R: Rng>(rng: &mut R) -> Self
[src]
Generates a random instance of this type using the specified source of randomness. Read more