-
Notifications
You must be signed in to change notification settings - Fork 5
Circle variants for drawing modes #35
base: master
Are you sure you want to change the base?
Conversation
Nice |
Spine could actually look really cool in circle mode. |
I think Wave should be filled completely in circle instead of having a blank circle on the inside. We could think about introducing a setting for that, but I'm not sure if that's worth it. |
Looks amazing otherwise! |
The setting would be a good compromise. Probably called "wave-circle-fill" in the schema, and in the UI it would be a switch with description "Fill completely", it can be added as the suffix of Wave row and only shown when Circle is on. |
I can look into the code and see if I can work on some of the other modes. Problem is, I don't know anything about those Sinus and Cosinus functions. |
They are used to get coordinates of a point on a circle. The formula is:
Let's see how it works with Bars. The x coordinate of the first point of a bar is calculated like this:
First we need to find an angle in radians. Hope it helps you to understand how this works :) |
Thanks! I'll see what I can do from there. |
All changes made in #38 were merged here and I made Bars Circle mode working with proper use of offset and thickness.
|
draw_element now acceps center coordinates instead of top left corner, making it easier to use with circle variants. Also gradients are now better applied in Spine mode
It was broken after previous commit
PR to track progress of implementing Circle variants for drawing modes
Line(removed in Merge Line & Wave into one #38)Related issue: #7