[title: "BackgroundGradient Class"] ← Back to index

Animated gradient background used throughout the game interface.

[heading: "Description"]

BackgroundGradient provides a subtle animated gradient background that pulses between minimum and maximum opacity values. It creates visual depth and atmosphere without distracting from UI elements.

[heading: "Key Features"] [list] * Smooth opacity pulsation * Configurable intensity range * Continuous animation loop * Non-intrusive visual element [/list] [heading: "Methods"] [table header] [ Method | Parameters | Description ] [ constructor | (min, max, time) | Creates gradient with specified parameters ] [/table] [heading: "Properties"] [table header] [ Property | Type | Description ] [ alpha | Number | Current opacity value ] [/table] [heading: "Animation Parameters"] [table header] [ Parameter | Type | Default | Description ] [ min | Number | 0.1 | Minimum opacity value ] [ max | Number | 0.5 | Maximum opacity value ] [ time | Number | 5000 | Cycle duration in milliseconds ] [/table] [heading: "Usage"]

BackgroundGradient is used in various game states:

[table header] [ State | Purpose ] [ Title | Background for logo and text ] [ MainMenu | Subtle background atmosphere ] [ SongSelect | Non-distracting backdrop ] [ Results | Background for score display ] [/table] [footer: "© Retora 2025"]