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
8c5c9b4ec6
Upgrade inspector-egui and add first pen_up
...
Unfortunately `pen_up` does not seem to work even though it compiles
2023-01-11 10:20:15 +01:00
c329e30ec8
simpler api, circles and examples
2022-12-21 11:08:35 +01:00
75771e8556
Add circle drawing
2022-12-21 11:07:02 +01:00
ccdf5f209f
updated movement commands
2022-12-19 09:44:25 +01:00
043e44b7f2
make the movement commands accept anything into the unit
2022-12-19 09:43:38 +01:00
8375fcfcae
Adding a koch example and extend the turtle by:
...
* set_speed
* extend_plan
2022-12-13 11:33:04 +01:00
7bdc83c760
adding extend_plan and set_speed
2022-12-13 11:31:29 +01:00
f82f17416f
update lib and example for the lib
2022-12-07 13:57:23 +01:00
f5aae7efe1
Add a builder for the turtle plans
2022-12-07 13:54:15 +01:00
11b9539800
enable basic left and right rotation
2022-12-07 13:52:28 +01:00
009f896e08
Add impl From<i16> for angle and length
2022-12-07 13:51:08 +01:00