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