octobanana / octavia

octobanana's customizable text-based audio visualization interactive application.
https://octobanana.com/software/octavia
MIT License
26 stars 1 forks source link

Artifacts in URxvt with colors enabled #2

Open Barbaross93 opened 3 years ago

Barbaross93 commented 3 years ago

Running octavia in URxvt produces artifacts when enabling colors. While running octavia in tmux, everything seems to work great. Even when I try disabling alpha compositing and color shift in URxvt the problem is still there, although not as bad when both are enabled. I'm betting this is because URxvt doesn't support true color. Is there a possibility of working with Xresources color palettes in the future?

octobanana commented 3 years ago

Exactly, the artifacts are due to rxvt-unicode lacking support for true colour. If you want to use rxvt-unicode with true colour support, there's a patched version available in the AUR called rxvt-unicode-truecolor. I just tried it out and the colours seem to display fine.

I'm planning on adding support for 4-bit (16 colours / Xresources palette), 8-bit (256 colours), and 24-bit (true colour) colours with different gradients and patterns.

Barbaross93 commented 3 years ago

Excellent; I didn't realize there was a truecolor version of urxvt on the AUR, that worked for me! One last question, and maybe I missed this somewhere, but is there an option to change the colors? It would be nice to set them to my colorscheme

octobanana commented 3 years ago

An option to change the default colours without recompiling will come with the configuration file support, it's what I'm working on now! Until then, first make sure to update to the new 1.2 release, as there's lots of improvements to the colour gradients. Then you can change the default colours in the ./src/app/app.hh file. It should be pretty straightforward to change the hex colour, if you have any questions on changing it let me know!

Also, try playing around with the n, N, m, and M keys, it's now possible to toggle the x-axis gradient and y-axis gradient individually, which can make some neat looking patterns!