Skip to content

v1.0.3 — Edge Behaviors

Choose a tag to compare

@PiotrPrus PiotrPrus released this 19 Apr 20:00
· 44 commits to main since this release

Adds EdgeBehavior configuration to CanvasEmitter, letting particles bounce, stick, or wrap at canvas boundaries (in addition to the default "none" behavior).

Changes

  • New EdgeBehavior API (None, Bounce, Stick, Wrap)
  • CanvasEmitterConfig gains an edgeBehavior parameter
  • StickyEdges sample screen demonstrating each mode
  • README updated with edge behavior docs and demo GIF

Install

implementation("io.github.piotrprus:particle-emitter:1.0.3")