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

pub struct RGB {
    pub r: f32,
    pub g: f32,
    pub b: f32,
}

A 3-channel (red, green, blue) color.

Fields

Methods

impl RGB
[src]

[src]

Trait Implementations

impl Clone for RGB
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for RGB
[src]

impl Debug for RGB
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for RGB
[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; 3]> for RGB
[src]

[src]

Performs the conversion.

impl<'a> From<&'a [f32; 3]> for RGB
[src]

[src]

Performs the conversion.