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
Add functions for drawing rounded rectangles to the drawing api #262
Comments
With the current API, we do not have any additional parameters for box types besides the color. So storing the radius is only possible globally. It is however possible to add custom box types that could have different radii. See If that would solve the issue at hand, I'll take a look at the API and check if there is a way to make this option more reachable, maybe add an example. |
See #553 for an implementation of |
Please refer to my request for better names in #553 (comment). |
Will fix that tomorrow |
Renamed to |
Rounded rectangles have become a critical part of modern GUI design. Having a method for drawing them would be very handing. While it is nice to be able to set the global radius size for rounded frames, we might also want to have rounded frames with different radiuses. So, I think we could save people time by providing a method for drawing rounded rectangles a custom radius.
Such a method already exists in fl_rounded_box:
The text was updated successfully, but these errors were encountered: