Skip to content

Commit

Permalink
Merge pull request #5 from deckerego/dim_holiday
Browse files Browse the repository at this point in the history
Dim the lights a bit for the holidays
  • Loading branch information
deckerego authored Nov 30, 2020
2 parents a82557d + bc820a3 commit e744595
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,16 @@ def shader_christmas(frame, timeout_segments):
leafs = [0, 2, 4, 5, 7, 9]
berries = [1, 3, 6, 8]
for leaf in leafs:
pixels[leaf] = (12, 228, 6)
pixels[leaf] = (12, 190, 10)
for berry in berries:
shimmer = random.randrange(30) + 10
pixels[berry] = (164, shimmer, shimmer)
pixels[berry] = (158, shimmer, shimmer)
else:
for pixel in range(timeout_segments, 10):
shimmer = random.randrange(40) + 15
pixels[pixel] = (248, shimmer, shimmer)
shimmer = random.randrange(35) + 15
pixels[pixel] = (232, shimmer, shimmer)
for pixel in range(timeout_segments):
pixels[pixel] = (255, 0, 0)
pixels[pixel] = (248, 0, 0)
return 0.1

# Constants
Expand Down

0 comments on commit e744595

Please sign in to comment.