can make a ppm

This commit is contained in:
Jon Janzen
2021-03-20 20:12:47 -06:00
parent 842c93568b
commit 1f33d87193
4 changed files with 52 additions and 7 deletions

View File

@@ -14,6 +14,14 @@ impl Canvas {
pixels : vec![vec![Color::new(0.0, 0.0, 0.0); width]; height],
}
}
pub fn width(&self) -> usize {
self.width
}
pub fn height(&self) -> usize {
self.height
}
}
impl Canvas {