Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Implement rect renderer on top of path painting algorithms#165

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
meyfa wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromfeat/rect-transform

Conversation

meyfa
Copy link
Owner

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.

@meyfameyfa added the enhancementImprovement to an existing feature labelMar 6, 2022
@meyfameyfa added this to thev0.12.0 milestoneMar 6, 2022
This implements one part of issue#149. By basing the renderer forrectangles off of the path painting algorithms, we can easily obtainrotated and skewed rectangles. This would be very difficult to domanually especially for rectangles with rounded corners. Now, we cansimply use the arc approximator to construct a polygon.I was torn between basing the RectRenderer off of either thePathRenderer, which would be the obvious choice but would requireneedlessly constructing an intermediate command array, or thePolygonRenderer, which means we have to work with the ArcApproximator ona lower level but possibly get better performance. I chose the latter.
@meyfameyfaforce-pushed thefeat/rect-transform branch from44ecb68 to19f6dfcCompareMarch 6, 2022 18:07
@meyfameyfa marked this pull request as draftMarch 6, 2022 18:10
@meyfameyfa modified the milestones:v0.12.0,v0.13.0,v0.14.0Dec 7, 2022
@meyfameyfa modified the milestones:v0.14.0,v0.15.0Jan 2, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
enhancementImprovement to an existing feature
Projects
None yet
Milestone
v0.17.0
Development

Successfully merging this pull request may close these issues.

1 participant
@meyfa

[8]ページ先頭

©2009-2025 Movatter.jp