← All components

<effect>

ContentWallpaper

Generative animated background effect. Picks one of a fixed catalog of templates (particles, blobs, topography, aurora) and renders it on a Compose Canvas driven by the shared animation clock. Pauses when the wallpaper engine is not visible. Allowed wherever a <shape> is — typically inside <background> or a <layer>.

Example

<effect type="particles" count="60" color="#FFFFFF" speed="0.04" size="2dp" twinkle="0.6" />

Attributes

NameTypeDefaultDescription
typeString
particlesblobstopographyaurora
—Effect template.
countInt—Element count (particles, blobs, lines)
paletteString—Comma-separated colors (cycled across elements). May be a single color.
speedFloat—Animation speed multiplier (effect-dependent)
qualityString
lowmediumhigh
—Element-count multiplier — low (×0.5), medium (×1.0), high (×1.5). Defaults to global Animations setting.
seedInt1Deterministic randomness seed — fixes layout across reboots and snapshots.
sizeDp—Particle radius (particles only)
radiusDp—Blob soft radius (blobs only)
blurDp—Blur radius (blobs/aurora — softens silhouette)
directionString
updowndriftoutward
upParticle drift direction (outward radiates from the centre for a fly-through starfield).
windFloat—Particle horizontal drift coefficient
twinkleFloat—Particle alpha modulation amount (0..1)
trailFloat0Streak length in seconds of travel behind each particle (outward only; 0 = plain dots)
lineCountInt15Topography contour intervals between sea level and summit
indexEveryInt5Topography: every Nth land contour is a heavier index contour
indexColorString—Topography index contour colour (defaults to the contour colour)
strokeWidthDp0.75dpTopography intermediate contour weight (index 2.5x, coastline 1.75x, depth 0.8x)
scaleDp160dpTopography characteristic island size
seaLevelFloat0.2Topography water threshold, -1..1 (higher = less land)
seaColorString—Topography water fill (transparent disables the fill)
coastColorString—Topography coastline colour
depthLinesInt3Topography submerged contour count
amplitudeDp—Aurora vertical excursion
bandsInt—Aurora band count
softnessDp—Aurora blur softness
overlayVisibleBooleanfalseKeep this element visible when the widget renders in overlay mode (default: hidden, the wallpaper draws it)