Struct amethyst_renderer::Rgba
[−]
pub struct Rgba(pub f32, pub f32, pub f32, pub f32);
An RGBA color value.
Methods
impl Rgba
[src]
fn black() -> Rgba
Returns a solid black color value.
fn blue() -> Rgba
Returns a solid blue color value.
fn green() -> Rgba
Returns a solid green color value.
fn red() -> Rgba
Returns a solid red color value.
fn transparent() -> Rgba
Returns a transparent color value.
fn white() -> Rgba
Returns a solid white color value.
Trait Implementations
impl Clone for Rgba
[src]
fn clone(&self) -> Rgba
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Rgba
[src]
impl Debug for Rgba
[src]
impl PartialEq for Rgba
[src]
fn eq(&self, __arg_0: &Rgba) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Rgba) -> bool
This method tests for !=
.
impl PartialOrd for Rgba
[src]
fn partial_cmp(&self, __arg_0: &Rgba) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Rgba) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Rgba) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Rgba) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Rgba) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Default for Rgba
[src]
impl From<[f32; 3]> for Rgba
[src]
impl From<[f32; 4]> for Rgba
[src]
impl From<(f32, f32, f32)> for Rgba
[src]
impl From<(f32, f32, f32, f32)> for Rgba
[src]
impl Formatted for Rgba
[src]
fn get_format() -> (BaseType, ContainerType)
Get the associated constant format.