Stuff
This commit is contained in:
23
cues.py
23
cues.py
@ -1,14 +1,7 @@
|
||||
#%%
|
||||
|
||||
import math
|
||||
import random
|
||||
|
||||
from flight.case import *
|
||||
from flight.color import Color
|
||||
from flight.client import *
|
||||
from flight.expressions import *
|
||||
from flight.expressions import Expression
|
||||
from flight.server import FlightServer
|
||||
|
||||
from constants import *
|
||||
|
||||
@ -63,6 +56,11 @@ with Cue('Q06', name='Emoji'):
|
||||
with Cue('Q07', name='Helmet', fadeIn=1, fadeOut=1):
|
||||
Match('#helmet').fader = 1
|
||||
|
||||
with Cue('Q08', name='Shrinking mask', fadeIn=1, fadeOut=1):
|
||||
period = 20
|
||||
count = t / period
|
||||
Match('#master_mask').scale = 0.01 + sine(count)
|
||||
|
||||
with Cue('Q11', name='Rainbow triangles', fadeIn=1, fadeOut=1):
|
||||
period = 5
|
||||
count = t / period
|
||||
@ -101,7 +99,7 @@ with Cue('Q21', name='Twinkling stars', fadeIn=1, fadeOut=1):
|
||||
Match('.star .fill').color = white(sine(count))
|
||||
|
||||
with Cue('Q22', name='Bouncing stars', fadeIn=1, fadeOut=1):
|
||||
period = 1
|
||||
period = 2
|
||||
phase = uniform('Q21.phase')[i]
|
||||
count = gt / period + phase
|
||||
Match('#stars').fader = 1
|
||||
@ -136,3 +134,12 @@ with Cue('Q24', name='Rushing stars', fadeIn=1, fadeOut=1):
|
||||
m.y = (uniform('Q24.y', i)[count] - 0.5) * screen.height * 2 * (count % 1)
|
||||
m.color = white(sine(count))
|
||||
m.scale = count % 1
|
||||
|
||||
with Cue('Q31', name='Spirals', fadeIn=1, fadeOut=1):
|
||||
period = 10
|
||||
count = t / period
|
||||
value = 0.25 + 0.75 * sine(1.3 * (count + meta.count / Spirals))
|
||||
Match('#spirals').fader = 1
|
||||
Match('#spirals').rotate = -count
|
||||
Match('.spiral .segment').lineWidth = 1.5 ** meta.index
|
||||
Match('.spiral .segment').color = hsv(count + meta.count / Spirals, meta.index / 8, value)
|
||||
|
Reference in New Issue
Block a user