Skip to content

Conversation

@meyfa
Copy link
Owner

@meyfa meyfa commented Mar 6, 2022

This implements one part of issue #149. By basing the renderer for
rectangles off of the path painting algorithms, we can easily obtain
rotated and skewed rectangles. This would be very difficult to do
manually especially for rectangles with rounded corners. Now, we can
simply use the arc approximator to construct a polygon.

I was torn between basing the RectRenderer off of either the
PathRenderer, which would be the obvious choice but would require
needlessly constructing an intermediate command array, or the
PolygonRenderer, which means we have to work with the ArcApproximator on
a lower level but possibly get better performance. I chose the latter.

@meyfa meyfa added the enhancement Improvement to an existing feature label Mar 6, 2022
@meyfa meyfa added this to the v0.12.0 milestone Mar 6, 2022
This implements one part of issue #149. By basing the renderer for
rectangles off of the path painting algorithms, we can easily obtain
rotated and skewed rectangles. This would be very difficult to do
manually especially for rectangles with rounded corners. Now, we can
simply use the arc approximator to construct a polygon.

I was torn between basing the RectRenderer off of either the
PathRenderer, which would be the obvious choice but would require
needlessly constructing an intermediate command array, or the
PolygonRenderer, which means we have to work with the ArcApproximator on
a lower level but possibly get better performance. I chose the latter.
@meyfa meyfa force-pushed the feat/rect-transform branch from 44ecb68 to 19f6dfc Compare March 6, 2022 18:07
@meyfa meyfa marked this pull request as draft March 6, 2022 18:10
@meyfa meyfa modified the milestones: v0.12.0, v0.13.0, v0.14.0 Dec 7, 2022
@meyfa meyfa modified the milestones: v0.14.0, v0.15.0 Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improvement to an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant