Struct orbtk::Color []

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

A color

Fields

Methods

impl Color

Create a new color from RGB

Set the alpha

Get the r value

Get the g value

Get the b value

Get the alpha value

Interpolate between two colors

Trait Implementations

impl Copy for Color

impl Clone for Color

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more