Simple shape editor that can be used as widget in Egui framework.
I didn't find any widgets that can be used to edit shape, so created my own.
Examples are in the examples folder.
Online demo.
- Add the library to dependencies.
- Show on the Ui as any other widget
cargo run -p simple
The project is in Proof Of Concept stage. Any public API can be changed in following releases.
-
Fix Circles and Rectangles transform
-
Delete action
-
Modify shape action
- Modify stroke
- Fill
-
Add point to path action
-
Selection edit
- Resize
- Rotate
- Mirror
-
Minimap?
-
Show/hide control points
Any contributions are welcome.
All code in this repository is dual-licensed under either:
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)