<filename>patterns/progression.py
import asyncio
import time
import random
from colour import Color

from utilities import *

from operator import add

async def progression(lights):
    loop = PeriodicLoop(0.1, 10)
    index = 0
    while not loop.done():
        lights[(index - 4) % 16].set_state(off)
        lights[index % 16].set_state(on)
        index += 1
        await loop.next()


<filename>patterns/progression.py
import asyncio
import time
import random
from colour import Color

from utilities import *

from operator import add

async def progression(lights):
    loop = PeriodicLoop(0.1, 10)
    index = 0
    while not loop.done():
        lights[(index - 4) % 16].set_state(off)
        lights[index % 16].set_state(on)
        index += 1
        await loop.next()

