This BackgroundManager class allows you to setup a background structure via xml. It supports the following background types:
- Solid Colors
- Complex Gradients
- Tiles (repeating) Images
- Static (non-repeating) Images – stretched or not, proportionate or not, centered
It allows you to set the master alpha (regardless of alpha values in, say, a gradient) for each item, you can add blend modes and filters also.
It has a few methods to modify the backgrounds also. You can add a new background anywhere in the list, change a certain background with another of the same type, remove a specific background, and remove all backgrounds.
Each of these methods allow you to animate the transition with an alpha fade, and you can specify the duration.