Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support playback with colors #1

Merged
merged 10 commits into from Apr 16, 2023
Merged

Support playback with colors #1

merged 10 commits into from Apr 16, 2023

Conversation

maxcurzi
Copy link
Owner

@maxcurzi maxcurzi commented Apr 16, 2023

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

@maxcurzi maxcurzi marked this pull request as ready for review April 16, 2023 19:50
Cargo.toml Outdated Show resolved Hide resolved
src/main.rs Show resolved Hide resolved
src/pipeline/frames.rs Outdated Show resolved Hide resolved
src/pipeline/runner.rs Outdated Show resolved Hide resolved
@maxcurzi maxcurzi merged commit 8d46131 into main Apr 16, 2023
@maxcurzi maxcurzi deleted the colors branch April 16, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant