Struct orbclient::color::Color
[−]
[src]
pub struct Color {
pub data: u32,
}A color
Fields
data: u32
Methods
impl Color[src]
const fn rgb(r: u8, g: u8, b: u8) -> Self
Create a new color from RGB
const fn rgba(r: u8, g: u8, b: u8, a: u8) -> Self
Set the alpha
Trait Implementations
impl Clone for Color[src]
fn clone(&self) -> Color
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more