Struct spectra::render::color::RGBA [] [src]

pub struct RGBA {
    pub r: f32,
    pub g: f32,
    pub b: f32,
    pub a: f32,
}

A 4-channel (red, green, blue, alpha) color.

Fields

Methods

impl RGBA
[src]

[src]

Trait Implementations

impl Clone for RGBA
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for RGBA
[src]

impl Debug for RGBA
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for RGBA
[src]

[src]

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

[src]

This method tests for !=.

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

[src]

Performs the conversion.

impl<'a> From<&'a [f32; 4]> for RGBA
[src]

[src]

Performs the conversion.