Struct amethyst_renderer::Rgba [−][src]
An RGBA color value.
Methods
impl Rgba[src]
impl Rgbapub fn black() -> Rgba[src]
pub fn black() -> RgbaReturns a solid black color value.
pub fn blue() -> Rgba[src]
pub fn blue() -> RgbaReturns a solid blue color value.
pub fn green() -> Rgba[src]
pub fn green() -> RgbaReturns a solid green color value.
pub fn red() -> Rgba[src]
pub fn red() -> RgbaReturns a solid red color value.
pub fn transparent() -> Rgba[src]
pub fn transparent() -> RgbaReturns a transparent color value.
pub fn white() -> Rgba[src]
pub fn white() -> RgbaReturns a solid white color value.
Trait Implementations
impl Clone for Rgba[src]
impl Clone for Rgbafn clone(&self) -> Rgba[src]
fn clone(&self) -> RgbaReturns 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 Rgbaimpl Debug for Rgba[src]
impl Debug for Rgbafn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Rgba[src]
impl PartialEq for Rgbafn eq(&self, other: &Rgba) -> bool[src]
fn eq(&self, other: &Rgba) -> boolThis 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) -> boolThis method tests for !=.
impl PartialOrd for Rgba[src]
impl PartialOrd for Rgbafn 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) -> boolThis 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) -> boolThis 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) -> boolThis 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) -> boolThis 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 Rgbaimpl From<[f32; 3]> for Rgba[src]
impl From<[f32; 3]> for Rgbaimpl From<[f32; 4]> for Rgba[src]
impl From<[f32; 4]> for Rgbaimpl From<(f32, f32, f32)> for Rgba[src]
impl From<(f32, f32, f32)> for Rgbaimpl From<(f32, f32, f32, f32)> for Rgba[src]
impl From<(f32, f32, f32, f32)> for Rgbaimpl 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 Rgbafn get_format() -> (BaseType, ContainerType)[src]
fn get_format() -> (BaseType, ContainerType)Get the associated constant format.
impl ToUniform for Rgba[src]
impl ToUniform for Rgbaimpl From<Rgba> for vec3[src]
impl From<Rgba> for vec3impl From<Rgba> for vec4[src]
impl From<Rgba> for vec4impl AsRef<Rgba> for AmbientColor[src]
impl AsRef<Rgba> for AmbientColor