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