Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: Added Decorator class and HasDecorator mixin #1781

Merged
merged 28 commits into from
Jul 18, 2022

Conversation

st-pasha
Copy link
Contributor

@st-pasha st-pasha commented Jul 3, 2022

Description

The new class allows applying visual filters to canvas drawing operations. It is conceptually similar to the LayerProcessor class, except that it applies directly to a canvas instead of a Picture.

This functionality was extracted from PR #1755.

NB: the guitar image was taken from here, which is a public domain image, i.e. licensed under CC0 1.0.

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

PR #1780 is a prerequisite.

vikilinho and others added 10 commits July 13, 2022 00:07
added 20 new colors and the colors are in alphabetical order.
…ult (flame-engine#1775)

The caches Game.images and Game.assets now coincide with the static caches Flame.images and Flame.assets by default.

This aims to avoid the situation where the same image (asset) may be loaded twice into two separate caches without the user noticing.
…ngine#1786)

After a previous update to padracing I forgot to update the script that turns it into a file that can be put into DartPad.
* chore(release): publish packages

 - flame@1.2.1
 - flame_audio@1.3.0
 - flame_test@1.6.0
 - flame_bloc@1.6.0
 - flame_fire_atlas@1.2.0
 - flame_flare@1.3.0
 - flame_forge2d@0.12.1
 - flame_lint@0.1.1
 - flame_oxygen@0.1.4
 - flame_rive@1.5.0
 - flame_svg@1.4.0
 - flame_tiled@1.6.0

* Update packages/flame/CHANGELOG.md
Adding projection, ìnvert and inverted to the vector extension.
The images path under sponsors has a relative path from the repository, which are being changed to absolute path (starting with https)
@st-pasha st-pasha changed the title feat: Adding Decorator class feat: Added Decorator class and HasDecorator mixin Jul 15, 2022
@spydon spydon enabled auto-merge (squash) July 18, 2022 19:38
@spydon spydon merged commit 8d00847 into flame-engine:main Jul 18, 2022
@st-pasha st-pasha deleted the ps.decorators branch July 18, 2022 19:49
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants