Struct quicksilver::graphics::Color [−][src]
An RGBA color represented by normalized floats
Fields
r: f32
The red component of the color
g: f32
The green component of the color
b: f32
The blue component of the color
a: f32
The alpha component of the color
Methods
impl Color
[src]
impl Color
pub fn with_red(self, r: f32) -> Color
[src]
pub fn with_red(self, r: f32) -> Color
Create an identical color with a different red component
pub fn with_green(self, g: f32) -> Color
[src]
pub fn with_green(self, g: f32) -> Color
Create an identical color with a different green component
pub fn with_blue(self, b: f32) -> Color
[src]
pub fn with_blue(self, b: f32) -> Color
Create an identical color with a different blue component
pub fn with_alpha(self, a: f32) -> Color
[src]
pub fn with_alpha(self, a: f32) -> Color
Create an identical color with a different alpha component
impl Color
[src]
impl Color
pub fn white() -> Color
[src]
pub fn white() -> Color
pub fn black() -> Color
[src]
pub fn black() -> Color
pub fn red() -> Color
[src]
pub fn red() -> Color
pub fn orange() -> Color
[src]
pub fn orange() -> Color
pub fn yellow() -> Color
[src]
pub fn yellow() -> Color
pub fn green() -> Color
[src]
pub fn green() -> Color
pub fn cyan() -> Color
[src]
pub fn cyan() -> Color
pub fn blue() -> Color
[src]
pub fn blue() -> Color
pub fn purple() -> Color
[src]
pub fn purple() -> Color
pub fn indigo() -> Color
[src]
pub fn indigo() -> Color
Trait Implementations
impl Clone for Color
[src]
impl Clone for Color
fn clone(&self) -> Color
[src]
fn clone(&self) -> Color
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Color
[src]
impl Copy for Color
impl Debug for Color
[src]
impl Debug for Color
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Color
[src]
impl Default for Color
impl PartialEq for Color
[src]
impl PartialEq for Color