Skip to main content

Crate pretty_text_effects

Crate pretty_text_effects 

Source
Expand description

Built-in text effects for bevy_pretty_text.

bevy_pretty_effects is an optional dependency, enabled by default in bevy_pretty_text with the default_effects feature.

For creating custom effects, see pretty_text::dynamic_effects.

Structs§

EffectsPlugin
pretty_text_effects’s top-level plugin.
Glitch
Displaces scanlines in a glyph.
Scramble
Cycles between random, alphanumeric glyphs.
Shake
Applies random linear motion within a radius.
Wave
Applies oscillating motion to a glyph along the y-axis.
Wobble
Applies complex circular motion to a glyph along both x and y axes.

Enums§

ScrambleLifetime
Controls the time in seconds that a glyph will scramble.
ScrambleSpeed
Controls the time in seconds that a glyph is retained.

Functions§

apply_effect_on_glyphs
This observer triggers whenever a Glyph is spawned and checks if the glyph’s GlyphSpanEntity has the target Effect. If it does, then Marker is inserted into the glyph.