Draw Outside Bounds Particle Modifier

A celebration burst drawn by a plain draw modifier that paints past its host's own bounds — draw modifiers are unclipped by default, so the modifier must sit before every .clip(...) in the chain, and any clipping ancestor still trims whatever leaves its edge. Covers scaling origin and reach off the host's measured size so one effect reads the same at 28dp and at 48dp, keeping the per-frame lambda cheap, and why pure drawing beats an animation library here. Use when a burst renders cut to the button's outline, when it vanishes inside a rounded card or list row, or before adding a vector-animation dependency to draw one.

maxrave-dev 5404f9a 8.6 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/draw-outside-bounds-particle-modifier commit 5404f9a97d

Frequently asked questions

npx skillmds@latest add maxrave-dev/draw-outside-bounds-particle-modifier