Refactored linear intensity demo

Main demonstration loop is now reduced in complexity with the instructions to fade all colors moved to a separate function.