move all music data to struct, save this data now

This commit is contained in:
2025-07-07 21:27:12 +02:00
parent a6a07ae81e
commit 1c4a5b09d9
4 changed files with 230 additions and 119 deletions

View File

@@ -42,6 +42,13 @@ impl PolygonFrame {
poly.update();
}
}
pub fn default() -> PolygonFrame {
PolygonFrame {
teta: 0.0,
polygons: vec![],
}
}
}
impl<Message> canvas::Program<Message> for PolygonFrame {