67 Commits

Author SHA1 Message Date
728549253d some more examples 2025-10-19 16:39:42 +02:00
346a4fd720 adjust examples to y-axis-flip 2025-10-19 14:19:17 +02:00
64bd8ee530 flip the direction of y now y increases upwards 2025-10-19 14:19:00 +02:00
1d93c22a73 dashed_circle example 2025-10-19 09:24:31 +02:00
9fda96e439 add a threaded clock example 2025-10-19 09:13:52 +02:00
284fcdcb6d clock example improvements 2025-10-19 08:49:20 +02:00
b31ac29deb add clock and bezier example 2025-10-18 22:19:02 +02:00
2199a7803f fix set heading 2025-10-18 22:18:36 +02:00
28527e6113 improve hangman 2025-10-18 21:35:45 +02:00
070b404bf4 add text capabilities 2025-10-18 19:50:55 +02:00
14b93f657b improve hangman example 2025-10-18 08:28:36 +02:00
16430f3958 add turtle.reset 2025-10-18 08:28:17 +02:00
7e23dc9d9c add two threading examples 2025-10-17 19:17:22 +02:00
6b81c76915 start with zero turtles 2025-10-17 19:16:43 +02:00
3f21afadb2 add threading 2025-10-17 19:16:19 +02:00
fcca1a2db4 rename create_turtle{,_plan} 2025-10-17 18:38:44 +02:00
3509060390 add multi turtle support 2025-10-17 08:59:29 +02:00
bbb9348497 initial multi-turtle support 2025-10-13 09:42:34 +02:00
1366f5e77f remove redundant and unimportant information 2025-10-12 23:01:32 +02:00
08a1802bd2 remove the bevy based turtle and rename turtle-lib-macroquad to turtle-lib 2025-10-12 20:31:05 +02:00
fe2beb01ed remove the bevy turtle 2025-10-12 19:39:09 +02:00
630b4fdc44 add examples 2025-10-12 17:30:49 +02:00
f43a71739e Add docs 2025-10-12 17:30:38 +02:00
6d7d3fc434 remove examples that are too much... 2025-10-12 16:23:13 +02:00
cef63ca32a add a macro for simpler first examples. 2025-10-12 16:13:25 +02:00
453e8e39bd apply clippy pedantic 2025-10-12 15:30:48 +02:00
033a1982fc unify draws and state updates from instant and animated drawing 2025-10-12 13:46:11 +02:00
c96d66247e add tracing logging 2025-10-12 13:22:21 +02:00
62e87edd4d improve duration calculation for go_to and arc_drawing 2025-10-12 12:55:21 +02:00
164be647b2 add deprecation readme 2025-10-12 12:40:40 +02:00
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
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
5799d2aa07 improve speed to have one single point of truth. 2025-10-09 15:54:53 +02:00
cebad0459c unify Left and Right to turn and forward backward to move 2025-10-09 13:35:10 +02:00
7da0dcf141 refactor for simpler circle command and removed duplicated code 2025-10-09 13:23:52 +02:00
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
9ab58e39e7 updating the examples 2025-10-01 17:12:45 +02:00
8a56176ceb first port to modern bevy 2025-10-01 17:10:27 +02:00
da7b9493ec Merge remote-tracking branch 'sub/main' 2023-01-25 12:05:51 +01:00
eef4591815 deleting turtle_lib submodule 2023-01-25 12:05:32 +01:00
f1591bc9f1 Moved files 2023-01-25 12:03:07 +01:00
15310f5184 moving files 2023-01-25 12:00:17 +01:00
d0e47b5b85 update the dependencies + new examples
`nikolaus` is AI generated an just wrong.

`interrupted_lines` does not work as expected
2023-01-25 12:00:09 +01:00
85f32250b1 updated examples for simpler interface 2023-01-25 11:58:48 +01:00
8686c81c00 update to updated movement commands 2023-01-25 11:58:48 +01:00
5df6f74071 Adding a koch curve example 2023-01-25 11:58:48 +01:00
e997cbae38 Use the new builder instead and draw complexer forms 2023-01-25 11:58:48 +01:00
5f47726943 Initial sample binary 2023-01-25 11:58:13 +01:00
9af343b543 remove example submodule 2023-01-25 11:48:48 +01:00
4746802f49 update to newer versions 2023-01-11 10:25:21 +01:00