Skip to content

antroids/egui-shape-editor

Repository files navigation

Egui Shape Editor

Simple shape editor that can be used as widget in 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 folder.

Perfect Cat Drawing

Demo

Online demo.

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

  • 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

Contributing

Any contributions are welcome.

License

All code in this repository is dual-licensed under either:

About

Egui Shape Editor widget

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages