Choose colors from official 35C3 range for colored noise.

This commit is contained in:
Juergen Stuber
2018-12-28 14:35:37 +01:00
parent 81c2de67e1
commit 3597cafeaa
2 changed files with 6 additions and 4 deletions

View File

@ -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)
}