Struct orbtk::Color [] [src]

#[repr(packed)]
pub struct Color { pub data: u32, }

A color

Fields

Methods

impl Color
[src]

[src]

Create a new color from RGB

[src]

Set the alpha

[src]

Get the r value

[src]

Get the g value

[src]

Get the b value

[src]

Get the alpha value

[src]

Interpolate between two colors

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

[src]

Formats the value using the given formatter.