예제 #1
0
def bounce_linear_1d(t, dt, x, y, prev_state, in_color):
    return in_color, rpi_ws281x.wave_sine(x + rpi_ws281x.wave_triangle(t))
예제 #2
0
def bounce_cubic_1d(t, dt, x, y, prev_state, in_color):
    return in_color, rpi_ws281x.wave_sine(x + rpi_ws281x.wave_cubic(t))
예제 #3
0
def sine_1d(t, dt, x, y, prev_state, in_color):
    return in_color, rpi_ws281x.wave_sine(t + x)