Struct orbclient::color::Color[][src]

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

A color

Fields

Methods

impl Color
[src]

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
[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]

Compare two colors (Do not take care of alpha)

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. Read more

Auto Trait Implementations

impl Send for Color

impl Sync for Color