add text capabilities

This commit is contained in:
2025-10-18 19:50:55 +02:00
parent 14b93f657b
commit 070b404bf4
9 changed files with 239 additions and 4 deletions
+7 -1
View File
@@ -1,6 +1,6 @@
//! Turtle commands and command queue
use crate::general::{AnimationSpeed, Color, Coordinate, Precision};
use crate::general::{AnimationSpeed, Color, Coordinate, FontSize, Precision};
use crate::shapes::TurtleShape;
/// Individual turtle commands
@@ -43,6 +43,12 @@ pub enum TurtleCommand {
BeginFill,
EndFill,
// Text rendering
WriteText {
text: String,
font_size: FontSize,
},
// Reset
Reset,
}