pronebel / egui-shape-editor

Egui Shape Editor widget

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:Rust 100.0%