Bug fixes:

    Prevent multiple loop() and/or animation() calls.
    loop(0, { ... }).

Improvements:

    Higher quality random number generator.
    Refactoring of random('color').
    Simpler loop constructs.
    Minor code refactoring.