Add a setPatterns function to change a decorator after its creation
Modify example to demonstrate use of setPatterns with an animated pattern