add text capabilities
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user