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

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

Compare two colors (Do not take care of alpha)

[src]

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

1.0.0
[src]

This method tests for !=.

impl Debug for Color
[src]

[src]

Formats the value using the given formatter.