Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antroids/egui-shape-editor
Egui Shape Editor widget
https://github.com/antroids/egui-shape-editor
egui ui widget
Last synced: about 2 months ago
JSON representation
Egui Shape Editor widget
- Host: GitHub
- URL: https://github.com/antroids/egui-shape-editor
- Owner: antroids
- License: apache-2.0
- Created: 2024-02-18T21:13:07.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-08-14T11:16:35.000Z (4 months ago)
- Last Synced: 2024-08-14T12:44:19.139Z (4 months ago)
- Topics: egui, ui, widget
- Language: Rust
- Homepage:
- Size: 7.97 MB
- Stars: 11
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-egui - egui-shape-editor
README
# Egui Shape Editor
Simple shape editor that can be used as widget in [Egui](https://github.com/emilk/egui) framework.
## Description
I didn't find any widgets that can be used to edit shape, so created my own.
## Getting Started
Examples are in the [examples](examples) folder.
![Perfect Cat Drawing](docs/PerfectCatDrawing.gif)
### Demo
Online [demo](https://antroids.github.io/egui-shape-editor/examples/simple/dist/).
### Installing
* Add the library to dependencies.
* Show on the Ui as any other widget### Executing program
```
cargo run -p simple
```## Project state
The project is in Proof Of Concept stage. Any public API can be changed in following releases.### TODO
- [x] Fix Circles and Rectangles transform- [x] Delete action
- [x] Modify shape action
- [x] Modify stroke
- [x] Fill
- [ ] Add point to path action
- [ ] Selection edit
- [ ] Resize
- [ ] Rotate
- [ ] Mirror
- [ ] Minimap?
- [ ] Show/hide control points### Contributing
Any contributions are welcome.## License
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)