Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Lamp = type solution in Creative category for Multicolored Lamp by flpo
from itertools import cycle
sequence = ('Green', 'Red', 'Blue', 'Yellow')
Lamp = type('', (), {'__init__': lambda s: setattr(s, 'c', cycle(sequence)), 'light': lambda s: next(s.c)})
June 11, 2018