|
|
@@ -15,7 +15,9 @@ impl Color { |
|
|
|
let (r, g, b) = (self.r as u32, self.g as u32, self.b as u32); |
|
|
|
(r << 16) | (g << 8) | b |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
pub const BLACK: Color = Color { r: 0x00, g: 0x00, b: 0x00 }; |
|
|
|
pub const WHITE: Color = Color { r: 0xff, g: 0xff, b: 0xff }; |
|
|
|
/// white color |
|
|
|
pub const WHITE: Color = Color { r: 0xff, g: 0xff, b: 0xff }; |
|
|
|
/// black color |
|
|
|
pub const BLACK: Color = Color { r: 0x00, g: 0x00, b: 0x00 }; |
|
|
|
} |