This commit is contained in:
Simon Gardling
2021-03-31 10:24:56 -04:00
parent bec6340607
commit 32bfd1b27e
9 changed files with 66 additions and 54 deletions

View File

@@ -1,8 +1,4 @@
use crate::{
grid::{Grid},
palette::{Palette},
};
use crate::{grid::Grid, palette::Palette};
// Class for storing data that will be used to create images
pub struct ImgData {
@@ -17,16 +13,16 @@ impl Clone for ImgData {
grids: self.grids.clone(),
palette: self.palette.clone(),
iteration: self.iteration.clone(),
}
};
}
}
impl ImgData {
pub fn new(in_grids: Vec<Grid>, in_palette: Palette, in_iteration: i32) -> Self {
ImgData {
grids: in_grids,
grids: in_grids,
palette: in_palette,
iteration: in_iteration,
}
}
}
}