Releases: ebeneliason/easy-pattern
Releases · ebeneliason/easy-pattern
v1.3.0
Features
- The parameter names have been simplified for clarity. Legacy parameter names are still fully supported, so this is not a breaking change.
xPhaseDuration
→xDuration
yPhaseDuration
→yDuration
phaseDuration
→duration
xPhaseOffset
→xOffset
yPhaseOffset
→yOffset
phaseOffset
→offset
xPhaseFunction
→xEase
yPhaseFunction
→yEase
phaseFunction
→ease
xPhaseArgs
→xEaseArgs
yPhaseArgs
→yEaseArgs
phaseArgs
→easeArgs
- A new waves example is provided
BitPattern
is now included inEasyPattern.lua
to enable single-file installation for those not using toybox.py.
Fixes
- BitPattern now includes unit tests
- Docs now clearly indicate that the
ditherType
argument tosetDitherPattern
is optional. - The checkerboard pattern included in docs is now slimmed down to its proper minimal form.
Full Changelog: v1.2.3...v1.3.0
v1.2.3
v1.2.2
Features
- Added unit tests
Fixes
- Fix missing
playdate.easingFunctions
import - Fix error defining patterns with
alpha
but noditherType
Full Changelog: v1.2.1...v1.2.2
v1.2.1
Features
- Add support for luacheck
Fixes
- Convert a few accidental globals to locals
- Properly define setColor and setBackgroundColor as class functions
Full Changelog: v1.2.0...v1.2.1
v1.2.0
Features
- Specify a color and/or background color for dither patterns
- Performance enhancements:
- Phase offsets are now cached and computed only as needed, which means you can apply a pattern multiple times in your
draw
method, or reuse the same pattern for multiple sprites without penalty. - The new
isDirty
method makes it possible to mark sprites dirty only when patterns need to be redrawn.
- Phase offsets are now cached and computed only as needed, which means you can apply a pattern multiple times in your
- Added a new "marching ants" example
Fixes
- Fix an off-by-one error in reversed phase offset calculations
Full Changelog: v1.1.1...v1.2.0
v1.1.1
Fixes
- Corrects an accidental global variable definition in
BitPattern
Full Changelog: v1.1.0...v1.1.1
v1.1.0
Features
- Adds
BitPattern
to define patterns in an easy-to-read binary format, with or without an alpha channel.
Fixes
- Patterns with alpha channels now work as expected.
Full Changelog: v1.0.1...v1.1.0