dietrich
630b4fdc44
add examples
2025-10-12 17:30:49 +02:00
dietrich
f43a71739e
Add docs
2025-10-12 17:30:38 +02:00
dietrich
6d7d3fc434
remove examples that are too much...
2025-10-12 16:23:13 +02:00
dietrich
cef63ca32a
add a macro for simpler first examples.
2025-10-12 16:13:25 +02:00
dietrich
453e8e39bd
apply clippy pedantic
2025-10-12 15:30:48 +02:00
dietrich
033a1982fc
unify draws and state updates from instant and animated drawing
2025-10-12 13:46:11 +02:00
dietrich
c96d66247e
add tracing logging
2025-10-12 13:22:21 +02:00
dietrich
62e87edd4d
improve duration calculation for go_to and arc_drawing
2025-10-12 12:55:21 +02:00
dietrich
00b9007f00
Implement tessellation for turtle graphics with fill support
...
- Added tessellation module to handle path tessellation using Lyon.
- Updated execution logic to record fill vertices and manage fill contours.
- Integrated tessellation into command execution for lines, arcs, and filled shapes.
- Enhanced TurtleState to track fill state and contours.
- Modified TweenController to handle fill commands and update drawing commands accordingly.
- Improved debug output for fill operations and tessellation processes.
2025-10-12 12:34:20 +02:00
dietrich
c3f5136359
normalizing angles to prevent drift
...
also move the at least one frame check to the AnimationSpeed creation.
2025-10-10 09:26:18 +02:00
dietrich
5799d2aa07
improve speed to have one single point of truth.
2025-10-09 15:54:53 +02:00
dietrich
cebad0459c
unify Left and Right to turn and forward backward to move
2025-10-09 13:35:10 +02:00
dietrich
7da0dcf141
refactor for simpler circle command and removed duplicated code
2025-10-09 13:23:52 +02:00
dietrich
25753b47ce
Initial macroquad version for compiletime reasons
...
```rust
// Movement
plan.forward(100);
plan.backward(50);
// Rotation
plan.left(90); // degrees
plan.right(45);
// Circular arcs
plan.circle_left(50.0, 180.0, 36); // radius, angle (degrees), segments
plan.circle_right(50.0, 180.0, 36); // draws arc to the right
// Pen control
plan.pen_up();
plan.pen_down();
// Appearance
plan.set_color(RED);
plan.set_pen_width(5.0);
plan.hide();
plan.show();
// Turtle shape
plan.shape(ShapeType::Triangle);
plan.shape(ShapeType::Turtle); // Default classic turtle shape
plan.shape(ShapeType::Circle);
plan.shape(ShapeType::Square);
plan.shape(ShapeType::Arrow);
// Custom shape
let custom = TurtleShape::new(
vec![vec2(10.0, 0.0), vec2(-5.0, 5.0), vec2(-5.0, -5.0)],
true // filled
);
plan.set_shape(custom);
// Chaining
plan.forward(100).right(90).forward(50);
```
2025-10-09 09:12:16 +02:00