summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlolcat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lolcat.c b/lolcat.c
index 0fcd912..449abcc 100755
--- a/lolcat.c
+++ b/lolcat.c
@@ -196,7 +196,7 @@ int main(int argc, char** argv)
} else {
if (rgb) {
i += wcwidth(c);
- float theta = i * freq_h / 5.0f + l * freq_v + offx * M_PI;
+ float theta = i * freq_h / 5.0f + l * freq_v + (offx + 2.0f * rand_offset / RAND_MAX) * M_PI;
float offset = 0.1;
uint8_t red = lrintf((offset + (1.0f - offset) * (0.5f + 0.5f * sin(theta + 0 ))) * 255.0f);