-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
epaint
: Add EllipseShape
#4122
epaint
: Add EllipseShape
#4122
Conversation
Points are now distributed based on an easing function |
I appreciate the PR, but I wonder how far we should be taking But - what are you planning on using this for? |
I just ran into this, with the same use case! |
Adds an Ellipse shape draw-able with the Painter, brings egui closer to the SVG Specification. I've done some optimization towards using less vertices and doing less calculations. ~~Currently the vertices are evenly distributed. It's possible this could be optimized further taking into account the gradient and increasing the concentration of vertices where the change in gradient is larger.~~ ![EllipseTall](https://github.com/emilk/egui/assets/50041841/b105230c-ce68-49c1-b162-d1f066bf9d6a) ![EllipseWide](https://github.com/emilk/egui/assets/50041841/6f9106d2-75cb-4f2a-b0c2-039b3aadec86)
Adds an Ellipse shape draw-able with the Painter, brings egui closer to the SVG Specification.
I've done some optimization towards using less vertices and doing less calculations.
Currently the vertices are evenly distributed.It's possible this could be optimized further taking into account the gradient and increasing the concentration of vertices where the change in gradient is larger.