Skip to content

fix: renderChain should allow open-ended chain drawing#1804

Merged
spydon merged 2 commits into
flame-engine:mainfrom
aeb-dev:aeb-dev
Jul 18, 2022
Merged

fix: renderChain should allow open-ended chain drawing#1804
spydon merged 2 commits into
flame-engine:mainfrom
aeb-dev:aeb-dev

Conversation

@aeb-dev
Copy link
Copy Markdown
Contributor

@aeb-dev aeb-dev commented Jul 18, 2022

Description

Checklist

  • The title of my PR starts with a [Conventional Commit] prefix (fix:, feat:, docs: etc).
  • I have read the [Contributor Guide] and followed the process outlined for submitting PRs.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples.

Breaking Change

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

Related Issues

fixes: #1803

void renderChain(Canvas canvas, List<Offset> points) {
final path = Path()..addPolygon(points, true);
canvas.drawPath(path, paint);
canvas.drawPoints(PointMode.polygon, points, paint);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, this will also be more efficient than the previous way.

@spydon spydon merged commit 60daa19 into flame-engine:main Jul 18, 2022
@aeb-dev aeb-dev deleted the aeb-dev branch July 18, 2022 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

renderChain should allow open-ended chain drawing

2 participants