+ 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

8th Jun 2020, 11:08 AM
Sousou
Sousou - avatar
7 Answers
+ 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
8th Jun 2020, 12:18 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
8th Jun 2020, 3:46 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 3
DEATH128 Sure you can. Not in SoloLearn, of course, but still. Check this out: https://pypi.org/project/asciimatics/
9th Jun 2020, 9:31 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 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.
9th Jun 2020, 2:25 AM
DEATH128
DEATH128 - avatar
+ 1
Pygame search can help you to
9th Jun 2020, 2:45 PM
Quang Dang Tran
Quang Dang Tran - avatar
0
BTW, console view is not designed for graphics!
8th Jun 2020, 3:19 PM
DEATH128
DEATH128 - avatar
- 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
9th Jun 2020, 11:10 AM
Abenezer
Abenezer - avatar