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 circle sector recipe #3806
base: master
Are you sure you want to change the base?
Add circle sector recipe #3806
Conversation
Thanks for the PR! I feel like this is so similar to |
Hm although pie has this cumulative effect where one passes the fractions in order, maybe one would have to remodel that behavior a little then. So that one can pass array-valued offsets as well so it's start-stop for each? |
I made this a seperate recipe for two reasons.
We could update |
Ok I guess reusing it for pie internals makes more sense. Pie predates the bezier stuff, hence the vertices. |
But that is a separate PR right?, or should I try to include it in this? |
I would probably include it so you know whether your implementation is suitable for that purpose. |
If it's a scatter-like thing then I'd probably change the signature to |
Well, I did not consider whether it should be scatter-like or something else. |
Description
Adds recipe for creating a circle sector.
arc
is used as template for this, but instead of many lines imitating an arc, it creates a filled path usingBezierPath
. (Using code modified from an example from @jkrumbiegel ).Related to #3741. And solves the problem I initially wanted to use the offset
pie
for.Example:
(btw, is there a smart way to trim this figure, which is also in the docs?)
I'm quite new to Julia/Dev, so I have a few questions:
inner_radius
is 0 or a "fat" arc ifinner_radius
is > 0. Is there a smarter way to do this?Type of change
Checklist