aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornathansmith117 <nathansmith117@sdf.org>2025-02-10 17:27:58 +0000
committernathansmith117 <nathansmith117@sdf.org>2025-02-10 17:27:58 +0000
commit5798d82c8dbaf49bb30d90b10eb5fcab15956a0d (patch)
tree080f972a728d0c54677ecfa5face276369fd0720 /test
parentdb6e56cab84f004d8cee833b197d0cfc52014cd4 (diff)
downloadsldj-5798d82c8dbaf49bb30d90b10eb5fcab15956a0d.tar.gz
sldj-5798d82c8dbaf49bb30d90b10eb5fcab15956a0d.tar.bz2
sldj-5798d82c8dbaf49bb30d90b10eb5fcab15956a0d.zip
Sleepyness
Diffstat (limited to 'test')
-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
};