Struct rusty_sword_arena::game::Color[][src]

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

A color with 32-bit float parts from [0.0, 1.0] suitable for OpenGL.

Fields

Red

Green

Blue

Methods

impl Color
[src]

Trait Implementations

impl Copy for Color
[src]

impl Clone for Color
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Color
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Color
[src]

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

This method tests for !=.

impl Hash for Color
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for Color
[src]

Auto Trait Implementations

impl Send for Color

impl Sync for Color