Skip to content

Releases: ebeneliason/easy-pattern

v1.3.0

16 Apr 22:01
Compare
Choose a tag to compare

Features

  • The parameter names have been simplified for clarity. Legacy parameter names are still fully supported, so this is not a breaking change.
    • xPhaseDurationxDuration
    • yPhaseDurationyDuration
    • phaseDurationduration
    • xPhaseOffsetxOffset
    • yPhaseOffsetyOffset
    • phaseOffsetoffset
    • xPhaseFunctionxEase
    • yPhaseFunctionyEase
    • phaseFunctionease
    • xPhaseArgsxEaseArgs
    • yPhaseArgsyEaseArgs
    • phaseArgseaseArgs
  • A new waves example is provided
  • BitPattern is now included in EasyPattern.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 to setDitherPattern 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

15 Apr 16:18
Compare
Choose a tag to compare

Fixes

  • On-screen unit test results are now reported accurately

Full Changelog: v1.2.2...v1.2.3

v1.2.2

15 Apr 15:40
Compare
Choose a tag to compare

Features

  • Added unit tests

Fixes

  • Fix missing playdate.easingFunctions import
  • Fix error defining patterns with alpha but no ditherType

Full Changelog: v1.2.1...v1.2.2

v1.2.1

14 Apr 04:31
Compare
Choose a tag to compare

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

14 Apr 02:05
Compare
Choose a tag to compare

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.
  • 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

12 Apr 23:29
Compare
Choose a tag to compare

Fixes

  • Corrects an accidental global variable definition in BitPattern

Full Changelog: v1.1.0...v1.1.1

v1.1.0

12 Apr 23:27
Compare
Choose a tag to compare

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