Skip to content
Discussion options

You must be logged in to vote

What do you mean colored pixel/blocks? Do you mean those in color palette?

If yes then you can use RichRenderable object for that https://github.com/Textualize/rich/blob/master/rich/__main__.py#L18-L36
It is constructed by using (half-height pixel/cell) character and carefully setting it's foreground and background which creates 2 color in the same terminal cell

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Bkeinn
Comment options

You must be logged in to vote
1 reply
@USLTD
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants