Skip to content

Commit 5e7160e

Browse files
committed
Two shades of orange in SpookySlow.
1 parent f969c39 commit 5e7160e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

G35.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#define COLOR_YELLOW COLOR(CHANNEL_MAX,CHANNEL_MAX, 0)
2929
#define COLOR_PURPLE COLOR(0xa, 0x3, 0xd)
3030
#define COLOR_ORANGE COLOR(0xf, 0x1, 0x0)
31+
#define COLOR_PALE_ORANGE COLOR(0x8, 0x1, 0x0)
3132
#define COLOR_WARMWHITE COLOR(0xf, 0x7, 0x2)
3233
#define COLOR_INDIGO COLOR(0x6, 0, 0xf)
3334
#define COLOR_VIOLET COLOR(0x8, 0, 0xf)

SpookySlow.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ uint32_t SpookySlow::Do() {
1919
g35_.fill_color(0, light_count_, 255, COLOR_BLACK);
2020
}
2121
if (remaining_-- > 2) {
22-
g35_.set_color(rand() % light_count_, G35::MAX_INTENSITY, COLOR_ORANGE);
22+
g35_.set_color(rand() % light_count_, G35::MAX_INTENSITY,
23+
(rand() & 1) ? COLOR_ORANGE : COLOR_PALE_ORANGE);
2324
}
2425
return 1000;
2526
}

0 commit comments

Comments
 (0)