How can we display pictures on repl?
I'm trying to add pictures to one of my games to make it more interesting. How do you do that?
Do you know how to do it on python?
@WilliamXing sorry, it's not possible in console python.
@WilliamXing Have you tried pygame? You could use it for the sole purpose of showing an image.
@robowolf How do we do it in pygame?
@WilliamXing I'm not an expert in it so I would suggest searching up documentation. It think you can use pygame.display('img.jpg')
@robowolf What do you mean documentation?
@WilliamXing Documentation is like an instruction manual to code. Pygame documentation will tell you every command there is. You can just search in the documentation or online how to display image in pygame.
@robowolf Can you try searching? I couldn't find anything good.
@WilliamXing https://www.geeksforgeeks.org/python-display-images-with-pygame/ (Check this as answer is it was helpful)
Solution
you can do this using HTML. Other languages too, but it's easier with HTML. Use the
img
tag.in the imageurl, put your URL for the image, or upload one, and put the name of it.
That should work