Enum flo_canvas::Color [] [src]

pub enum Color {
    Rgba(f32f32f32f32),
    Hsluv(f32f32f32f32),
}

Representation of a colour

Variants

Methods

impl Color
[src]

[src]

Returns this colour as RGBA components

[src]

Returns this colour as HSLUV components

[src]

Converts this colour to another format

[src]

Returns a new colour that's the same as this one except with a different alpha value

Trait Implementations

impl Clone for Color
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Color
[src]

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

[src]

Formats the value using the given formatter. Read more

impl CanvasEncoding<String> for Color
[src]

[src]

Encodes this item by appending it to the specified string Read more

Auto Trait Implementations

impl Send for Color

impl Sync for Color