+ 2
How to print a colored image in console?
Is there a way to get image pixels and its colors without any additional module? (not in standard - library) I want to make a program that prints each pixel as a space character colored with ansi escape background color in console
7 Réponses
+ 8
If for SoloLearn, you might use emojis as kind of color pixels. This, however, might differ between devices as some smartphone producers introduce their own emoji setup. A couple of examples:
https://code.sololearn.com/c38hmKFESSf2/?ref=app
https://code.sololearn.com/c7dJuliIg0cF/?ref=app
https://code.sololearn.com/cT10yuI5ZQiB/?ref=app
https://code.sololearn.com/chne32DuRvvx/?ref=app
https://code.sololearn.com/c6wqCRJc6w3C/?ref=app
https://code.sololearn.com/c5IAm97758Db/?ref=app
+ 3
DEATH128 Oh, come on: ;)
https://code.sololearn.com/cwstTU4ohOr9/?ref=app
+ 3
DEATH128 Sure you can. Not in SoloLearn, of course, but still. Check this out:
https://pypi.org/project/asciimatics/
+ 1
Kuba Siekierzyński That's no graphics! Lol, can you animate a clock in console view???😕, coz you're just messing with ASCII and emojis in sololearn.
+ 1
Pygame search can help you to
0
BTW, console view is not designed for graphics!
- 1
Of you ment backgraung image use this code in css
{background-image፡ liner-gradient to directionE.gLeft , color 1 , color 2 . . . }
This will create a gradient of the colors you have inserted to the direction. And almost all times you wanna make the colors transparent