Render phase. Omit to make this effect transparent in the chain.
Rebuild the atlas from the current params, applying changes to the
baked fields (chars / tiles / font / fontWeight /
charAspect) without removing and re-adding the effect. Async — it
may load fonts or decode image tiles. No-op before init().
Allocates a fresh atlas texture and disposes the previous one once the
swap is live, so repeated calls don't leak. Still does real work
(rasterising / decoding), so prefer occasional calls (e.g. on a
settings change) over per-frame use.
ASCII / glyph-mosaic effect.
Example
Glyphs keep their native aspect ratio regardless of the
gridratio:each is fitted (contain) into its cell, so a non-square cell letterboxes
rather than stretching the character. Match
gridto the font'scharacter box (≈ advance : em) for gap-free tiling.
grid,color,background,colorFromSource,invert, andditherare live (read every frame).
chars/tiles/font/fontWeight/charAspectare baked into the atlas atinit()— after changing themvia
setParams, call AsciiEffect.updateAtlas (or re-add theeffect) to rebuild.