Struct ggez::graphics::Color [] [src]

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

A RGBA color.

Fields

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 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 Debug for Color
[src]

Formats the value using the given formatter.

impl From<(u8, u8, u8, u8)> for Color
[src]

Performs the conversion.

impl From<(u8, u8, u8)> for Color
[src]

Performs the conversion.

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

Performs the conversion.