Exemplo n.º 1
0
    RAINBOWCYCLE:
    RainbowCycle(),
    BLACKOUT:
    StaticColor(Colors.BLACKOUT),
    RANDOM:
    RandomChoice(),
    #MUSIC        : MusicReactive(),
    DROPLETS:
    Droplets(),
    ADDITIVECYCLE:
    Additive(False),
    COLORROTATE:
    ColorRotate(),
    COLORCHASE:
    ColorChase(4, 64),
    COLORSTROBE:
    ColorStrobe(),
    MULTITEST:
    MultiAnimation([
        ColorChase(4, 32),
        ColorChase(4, 32),
        ColorChase(4, 32),
        ColorChase(4, 32)
    ], [
        Strip.FirstQuarterSubstrip(True),
        Strip.SecondQuarterSubstrip(),
        Strip.ThirdQuarterSubstrip(True),
        Strip.FourthQuarterSubstrip()
    ])
}
Exemplo n.º 2
0
COLORROTATE    = 'colorrotate'
COLORCHASE     = 'colorchase'
COLORSTROBE    = 'color strobe'
MULTITEST      = 'multitest'

ANIMATIONS    = {COLORWIPE    : ColorWipe(),
                 RAINBOW      : Rainbow(),
                 RAINBOWCYCLE : RainbowCycle(),
                 BLACKOUT     : StaticColor(Colors.BLACKOUT),
                 RANDOM       : RandomChoice(),
                 BLINKONCE    : Blink(1),
                 BLINKTWICE   : Blink(2),
#                 COLOR        : StaticColor(Colors.CUSTOM),
#                 MUSIC        : MusicReactive(),
                 DROPLETS     : Droplets(),
                 ADDITIVEFADE : Additive(True),
                 ADDITIVECYCLE: Additive(False)}


DYNAMIC_ANIMATIONS = [animation for identifier, animation in ANIMATIONS.items() if animation.should_autorun()]

ANIMATIONS[AUTORUN] = AutoRun(DYNAMIC_ANIMATIONS)
                 #MUSIC        : MusicReactive(),
                 DROPLETS     : Droplets(),
                 ADDITIVECYCLE: Additive(False),
                 COLORROTATE  : ColorRotate(),
                 COLORCHASE   : ColorChase(4, 64),
                 COLORSTROBE  : ColorStrobe(),
                 MULTITEST    : MultiAnimation([ColorChase(4, 32), ColorChase(4, 32), ColorChase(4, 32), ColorChase(4, 32)],
                                               [Strip.FirstQuarterSubstrip(True), Strip.SecondQuarterSubstrip(), Strip.ThirdQuarterSubstrip(True), Strip.FourthQuarterSubstrip()])}