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

Feature Request: Different "Character sets" #2

Closed
timfi opened this issue Aug 16, 2021 · 1 comment · Fixed by #5 or #7
Closed

Feature Request: Different "Character sets" #2

timfi opened this issue Aug 16, 2021 · 1 comment · Fixed by #5 or #7
Assignees
Labels
enhancement New feature or request

Comments

@timfi
Copy link
Owner

timfi commented Aug 16, 2021

Description

One "nice to have" feature could be the addition of matrices that use other character sets for rendering. One nice set could be ▖▗▘▝▀▄▌▐▚▞▙▛▜▟█, i.e. a 2x2 grid per character.

This could be accomplished by extracting all the character set dependent code into a subclass and leave an ABC that makes use of __getitem__, __setitem__, __init__, and render provided by the subclass.

Code

from dotmatrix import BlockMatrix

m = BlockMatrix(16, 8)

m.rectangle((0, 0), (15, 7))

print(m.render())

Output

▛▀▀▀▀▀▀▜
▌      ▐
▌      ▐
▌      ▐
▌      ▐
▌      ▐
▌      ▐
▙▄▄▄▄▄▄▟

Anything else?

No response

@timfi timfi added the enhancement New feature or request label Aug 16, 2021
@timfi timfi self-assigned this Aug 16, 2021
@timfi
Copy link
Owner Author

timfi commented Aug 17, 2021

Feature Branch: issue-2-custom-charsets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant