diff options
author | jaseg <git@jaseg.net> | 2020-12-25 15:07:33 +0100 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2020-12-25 15:08:06 +0100 |
commit | cac131290657659241284d88b3e80ef2175620c5 (patch) | |
tree | 6e483fea25238227b3198741954a9e45869d7cb6 /lolcat.c | |
parent | 861fc46bb31c94c5a9750546173ef0ae6166084b (diff) | |
download | lolcat-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-x | lolcat.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |