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

'ascii' render style #58

Open
4 tasks
AnonymouX47 opened this issue Jun 26, 2022 · 0 comments
Open
4 tasks

'ascii' render style #58

AnonymouX47 opened this issue Jun 26, 2022 · 0 comments
Assignees
Labels
ascii Related to the 'ascii' render style enhancement New feature / Improvement suggestion or request planned Planned feature (should be removed as soon as implementation starts)
Milestone

Comments

@AnonymouX47
Copy link
Owner

AnonymouX47 commented Jun 26, 2022

Branches off #57

This render style is based on three major things:

  • ASCII characters
  • Character density
  • Lightness of an image pixel

Progress:

  • Sizing
  • Rendering
  • CLI integration
  • TUI integration

Initial idea

  • A specific set of ASCII characters will be selected, each with a different density and ordered by increasing density.
    • Might end up having multiple sets to choose from.
  • The image will be resized to a density of one pixel per cell.
  • Each pixel is mapped to a character defined by the relation:
px = chars[(lightness * len(chars)) // 255]

Style args:

  • invert: bool = False -> Inverts the greyscale.

Any suggestions are always welcome. 😃

@AnonymouX47 AnonymouX47 added enhancement New feature / Improvement suggestion or request lib Related to the library (Not to be used anymore) cli Related to the image viewer's CLI (Not to be used anymore) tui Related to the image viewer's TUI (Not to be used anymore) text Related to the interface common to text-based render styles planned Planned feature (should be removed as soon as implementation starts) labels Jun 26, 2022
@AnonymouX47 AnonymouX47 self-assigned this Jun 26, 2022
@AnonymouX47 AnonymouX47 added ascii Related to the 'ascii' render style and removed text Related to the interface common to text-based render styles labels Jun 26, 2022
@AnonymouX47 AnonymouX47 added this to the 0.7.0 milestone Feb 23, 2023
@AnonymouX47 AnonymouX47 removed lib Related to the library (Not to be used anymore) cli Related to the image viewer's CLI (Not to be used anymore) tui Related to the image viewer's TUI (Not to be used anymore) labels Apr 16, 2023
@AnonymouX47 AnonymouX47 modified the milestones: 0.7.0, 0.9.0 Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ascii Related to the 'ascii' render style enhancement New feature / Improvement suggestion or request planned Planned feature (should be removed as soon as implementation starts)
Projects
None yet
Development

No branches or pull requests

1 participant