diff options
author | nathansmith117 <nathansmith117@sdf.org> | 2025-02-10 13:18:18 +0000 |
---|---|---|
committer | nathansmith117 <nathansmith117@sdf.org> | 2025-02-10 13:18:18 +0000 |
commit | db6e56cab84f004d8cee833b197d0cfc52014cd4 (patch) | |
tree | bbb53dfb0216aa87eabc5e24b6a2c0a81fa6251f /test/scanTest1.c | |
parent | b04d5702719eca30a95d1db2a927b6605ebd3477 (diff) | |
download | sldj-db6e56cab84f004d8cee833b197d0cfc52014cd4.tar.gz sldj-db6e56cab84f004d8cee833b197d0cfc52014cd4.tar.bz2 sldj-db6e56cab84f004d8cee833b197d0cfc52014cd4.zip |
Playing around with faster random numbers
Diffstat (limited to 'test/scanTest1.c')
-rw-r--r-- | test/scanTest1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/scanTest1.c b/test/scanTest1.c index c673e04..b03060a 100644 --- a/test/scanTest1.c +++ b/test/scanTest1.c @@ -23,8 +23,8 @@ Color lineScanner(uint16_t x, uint16_t y, uint32_t frameNumber) c = frameNumber + hypot((x - 32768) >> scale, (y - 32768) >> scale); } } else { - uint8_t c1 = (x >> 8) + (uint8_t)(hypot(x >> 8, y >> 8) * (frameNumber % 255)); - uint8_t c2 = (x >> 8) + (uint8_t)(hypot(cos(x >> scale), sin(y >> scale)) * (frameNumber % 255)); + uint8_t c1 = (x >> 8) + (uint8_t)(hypot(x >> 8, y >> 8) * (frameNumber % 255)); + uint8_t c2 = (x >> 8) + (uint8_t)(hypot(cos(x >> scale), sin(y >> scale)) * (frameNumber % 255)); uint8_t c3 = frameNumber + hypot((x - 32768) >> scale, (y - 32768) >> scale); c = c1 & c2 & c3; |