Choose colors from official 35C3 range for colored noise.
This commit is contained in:
1 parent
81c2de67e1
commit
3597cafeaa
2 files changed
+6
-4
No files matched your search
@@ -3,6 +3,9 @@ pub struct Color(u8, u8, u8);
|
||||
|
||||
#[allow(unused)]
|
||||
impl Color {
|
||||
pub fn new(r: u8, g: u8, b: u8) -> Color {
|
||||
Color(r, g, b)
|
||||
}
|
||||
pub fn black() -> Color {
|
||||
Color(0, 0, 0)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user