about summary refs log tree commit diff
path: root/src/color.rs
blob: dc134efa24e725e18cab218a62d00202ea96880d (plain)
1
2
3
4
5
6
7
8
9
10
11
pub struct Color {
	pub r: u8,
	pub g: u8,
	pub b: u8
}

impl Color {
	pub fn new(r: u8, g: u8, b: u8) -> Self {
		Self { r, g, b }
	}
}