#[derive(Clone, Copy, Debug)]
pub struct Rgbw {
pub r: u8,
pub g: u8,
pub b: u8,
pub w: u8,
}
impl Rgbw {
pub fn new(r: u8, g: u8, b: u8, w: u8) -> Rgbw {
Rgbw { r, g, b, w }
}
pub fn black() -> Self {
Self::new(0, 0, 0, 0)
}
pub fn white() -> Self {
Self::new(255, 255, 255, 255)
}
}