summaryrefslogtreecommitdiff
path: root/lolcat.c
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2020-12-25 15:07:33 +0100
committerjaseg <git@jaseg.net>2020-12-25 15:08:06 +0100
commitcac131290657659241284d88b3e80ef2175620c5 (patch)
tree6e483fea25238227b3198741954a9e45869d7cb6 /lolcat.c
parent861fc46bb31c94c5a9750546173ef0ae6166084b (diff)
downloadlolcat-cac131290657659241284d88b3e80ef2175620c5.tar.gz
lolcat-cac131290657659241284d88b3e80ef2175620c5.tar.bz2
lolcat-cac131290657659241284d88b3e80ef2175620c5.zip
Add daytime offset to 24-bit rgb color option too
Diffstat (limited to 'lolcat.c')
-rwxr-xr-xlolcat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lolcat.c b/lolcat.c
index b8cfc56..1357394 100755
--- a/lolcat.c
+++ b/lolcat.c
@@ -195,7 +195,7 @@ int main(int argc, char** argv)
} else {
if (rgb) {
i += wcwidth(c);
- float theta = i * freq_h / 5.0f + l * freq_v;
+ float theta = i * freq_h / 5.0f + l * freq_v + offx * M_PI;
float offset = 0.1;
uint8_t red = lrintf((offset + (1.0f - offset) * (0.5f + 0.5f * sin(theta + 0 ))) * 255.0f);