aboutsummaryrefslogtreecommitdiffstats
path: root/test/scanTest3.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/scanTest3.c')
-rw-r--r--test/scanTest3.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/scanTest3.c b/test/scanTest3.c
index 1a0c3ec..29559c3 100644
--- a/test/scanTest3.c
+++ b/test/scanTest3.c
@@ -22,17 +22,20 @@ void loadContext(SldjContext context)
}
}
-int s = 100;
+int s = 102;
Color lineScanner(uint16_t x, uint16_t y, uint32_t frameNumber)
{
// Shifts around the noise to make it look better.
- uint8_t c = values[((x + (frameNumber >> 2)) + (y << 1)) % VALUES_SIZE];
- uint8_t b = frameNumber + SLDJ_HYPOT2(((x - 32768) >> 6), ((y - 32768) >> 6));
+ //uint8_t c = values[((x + (frameNumber >> 2)) + (y << 1)) % VALUES_SIZE];
+
+ uint8_t c = SLDJ_RANDOM16(s) >> 8;
+ //uint8_t c = SLDJ_RANDOM32(s) >> 24;
+ //uint8_t c = random();
return (Color){
- .r = (c + b) << 1,
- .g = b,
+ .r = c * 10,
+ .g = c + 127,
.b = c,
.a = 255
};