make fields private

This commit is contained in:
Simon Gardling 2025-03-28 00:00:19 -04:00
parent e973404c82
commit ab226026c3
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -5,9 +5,9 @@ use itertools::multizip;
/// Stores data that is located in grids that is used for image generation /// Stores data that is located in grids that is used for image generation
#[derive(Clone)] #[derive(Clone)]
pub struct ThinGridData { pub struct ThinGridData {
pub width: usize, width: usize,
pub height: usize, height: usize,
pub data: Vec<f32>, data: Vec<f32>,
} }
impl ThinGridData { impl ThinGridData {
@ -42,8 +42,8 @@ impl ThinGridData {
/// Class for storing data that will be used to create images /// Class for storing data that will be used to create images
#[derive(Clone)] #[derive(Clone)]
pub struct ImgData { pub struct ImgData {
pub grids: Vec<ThinGridData>, grids: Vec<ThinGridData>,
pub palette: Palette, palette: Palette,
} }
impl ImgData { impl ImgData {