1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
pub struct ColorImage { width: u16, height: u16, data: Vec<Pixel> } impl ColorImage { pub fn new() { } } pub enum Pixel { Color(Color), Transparent }