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

Use ANSI clear for fully transparent pixels #29

Open
kj800x opened this issue Mar 8, 2020 · 1 comment
Open

Use ANSI clear for fully transparent pixels #29

kj800x opened this issue Mar 8, 2020 · 1 comment

Comments

@kj800x
Copy link

kj800x commented Mar 8, 2020

It would be nice for fully transparent pixels to print out blank, so that they can use the terminal's default background color. I figure this can be done with ANSI reset/clear?

For example, when I try to use termpix to print out this png with a transparent background, I instead get a weird dark grey background (which is a slightly different grey than my terminal background).

(Note that I'm using mmacedoeu's fork which seems mostly unchanged from this repo, just with the build issues fixed.)

Raw Image:
243MS

Rendered in Preview Application:
image

Rendered by Termpix:
image

@kj800x
Copy link
Author

kj800x commented Mar 8, 2020

Related to #14, although the proposed solution there seems to be to have it render out a checkerboard pattern in the background, which is not what I'd expect/want. At the very least, I think there should be a flag to toggle between checkerboard/truly transparent rendering of transparent pixels.

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

No branches or pull requests

1 participant