<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
| Name | Type | Default | Description |
|---|---|---|---|
type | String | — | Effect template. |
count | Int | — | Element count (particles, blobs, lines) |
palette | String | — | Comma-separated colors (cycled across elements). May be a single color. |
speed | Float | — | Animation speed multiplier (effect-dependent) |
quality | String | — | Element-count multiplier — low (×0.5), medium (×1.0), high (×1.5). Defaults to global Animations setting. |
seed | Int | 1 | Deterministic randomness seed — fixes layout across reboots and snapshots. |
size | Dp | — | Particle radius (particles only) |
radius | Dp | — | Blob soft radius (blobs only) |
blur | Dp | — | Blur radius (blobs/aurora — softens silhouette) |
direction | String | up | Particle drift direction (outward radiates from the centre for a fly-through starfield). |
wind | Float | — | Particle horizontal drift coefficient |
twinkle | Float | — | Particle alpha modulation amount (0..1) |
trail | Float | 0 | Streak length in seconds of travel behind each particle (outward only; 0 = plain dots) |
lineCount | Int | 15 | Topography contour intervals between sea level and summit |
indexEvery | Int | 5 | Topography: every Nth land contour is a heavier index contour |
indexColor | String | — | Topography index contour colour (defaults to the contour colour) |
strokeWidth | Dp | 0.75dp | Topography intermediate contour weight (index 2.5x, coastline 1.75x, depth 0.8x) |
scale | Dp | 160dp | Topography characteristic island size |
seaLevel | Float | 0.2 | Topography water threshold, -1..1 (higher = less land) |
seaColor | String | — | Topography water fill (transparent disables the fill) |
coastColor | String | — | Topography coastline colour |
depthLines | Int | 3 | Topography submerged contour count |
amplitude | Dp | — | Aurora vertical excursion |
bands | Int | — | Aurora band count |
softness | Dp | — | Aurora blur softness |
overlayVisible | Boolean | false | Keep this element visible when the widget renders in overlay mode (default: hidden, the wallpaper draws it) |