Struct amethyst_renderer::Rgba []

pub struct Rgba(pub f32, pub f32, pub f32, pub f32);

An RGBA color value.

Methods

impl Rgba
[src]

Returns a solid black color value.

Returns a solid blue color value.

Returns a solid green color value.

Returns a solid red color value.

Returns a transparent color value.

Returns a solid white color value.

Trait Implementations

impl Clone for Rgba
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Rgba
[src]

impl Debug for Rgba
[src]

Formats the value using the given formatter.

impl PartialEq for Rgba
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for Rgba
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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]

Returns the "default value" for a type. Read more

impl From<[f32; 3]> for Rgba
[src]

Performs the conversion.

impl From<[f32; 4]> for Rgba
[src]

Performs the conversion.

impl From<(f32, f32, f32)> for Rgba
[src]

Performs the conversion.

impl From<(f32, f32, f32, f32)> for Rgba
[src]

Performs the conversion.

impl Formatted for Rgba
[src]

Get the associated constant format.

impl ToUniform for Rgba
[src]