maxcurzi / tplay

A terminal ASCII media player. View images, gifs, videos, webcam, YouTube, etc.. directly in the terminal as ASCII art.
MIT License
208 stars 13 forks source link

Support playback with colors #1

Closed maxcurzi closed 1 year ago

maxcurzi commented 1 year ago

Extract RGB information from scaled image and stylize each character with its color info. Update charmaps to better handle the colorization. Outstanding issues to consider:

- Use only solid blocks when using colors?

Default ASCII charmap is fine, can switch to solid block after. Other defaults tbc.

- Allow characters, but the issue is that default char map is chosen to quantize grayscale/luminance. How would it look like when RGB colors (which already contains luminance information) are applied?

Unresolved, just select the char map that makes it look best for you

- Add command line flag (color or grayscale by default?)

Default is color (is a media player, after all), grayscale with flag and live-toggle

- Will grayscale images/videos work?

I couldn't find any media that didn't work. More test will be needed on a variety of media files