aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/c_defines.h3
-rw-r--r--src/c_screen.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/c_defines.h b/src/c_defines.h
index 898f5a4..e3c99fc 100644
--- a/src/c_defines.h
+++ b/src/c_defines.h
@@ -66,7 +66,8 @@
#define BLUE CRGB(0, 0, 255)
#define GRUV CRGB(255, 80, 0)
-#define RANDOM_PX_COUNT 7
+#define START_X 0
+#define RANDOM_PX_COUNT 30
enum bool_e {
FALSE,
diff --git a/src/c_screen.c b/src/c_screen.c
index 66f3653..c59ab38 100644
--- a/src/c_screen.c
+++ b/src/c_screen.c
@@ -96,7 +96,7 @@ c_fill_led
}
j = 0;
while (j < 3) {
- leds[i + j] = (total[j] / 256) / RANDOM_PX_COUNT;
+ leds[i + j] = ((total[j] / 256) / RANDOM_PX_COUNT * 40) / 100;
j++;
}
}
@@ -118,7 +118,7 @@ c_get_screen_colors
srand(t);
img = XGetImage(
disp, RootWindow(disp, DefaultScreen(disp)),
- 1920, 0,
+ START_X, 0,
SCREEN_W, SCREEN_H,
AllPlanes, ZPixmap
);