diff --git a/effects.py b/effects.py index fa3d9f9..ff43b88 100644 --- a/effects.py +++ b/effects.py @@ -17,7 +17,7 @@ def SolidColorTest(wall): print "SolidColorTest" wall.clear() - hue = 1 + hue = 0 saturation = 1 value = 1 @@ -111,6 +111,20 @@ def Checkerboards(wall): wall.draw() time.sleep(0.5) +def Checkerboards2(wall): + print "Checkerboards2" + wall.clear() + + for i in range(10): + for x in range(wall.width): + for y in range(wall.height): + if (x + y + i) % 3 == 0: + wall.set_pixel(x, y, colors["black"]) + else: + wall.set_pixel(x, y, colors["yellow"]) + wall.draw() + time.sleep(0.5) + def Columns(wall): print "Columns" wall.clear() diff --git a/run.py b/run.py index 1c91eda..ae5ed3e 100644 --- a/run.py +++ b/run.py @@ -37,6 +37,7 @@ effects.DictionaryTest(wall) effects.RainbowTest(wall) effects.Checkerboards(wall) + #effects.Checkerboards(wall) effects.Columns(wall) effects.Rainbow(wall) effects.Twinkle(wall)