I'm in a college class where I'm required to work with a simple programming language called Portugol, which mainly supports basic functions like reading and writing. For my final project, I want to create a Mario Kart character selection screen, and including some kind of image would really help me stand out. I'm considering using ASCII art, but I'm having a hard time finding a good site to generate this from an image. Can anyone suggest how to best incorporate ASCII art into my project?
5 Answers
There's a way to convert an image to ASCII art, but decoding that in Portugol could get tricky. Try finding a tool online that creates ASCII art from images, then copy that output directly into your project. If you’re comfortable with JavaScript, check out this guide [here](https://www.jonathan-petitcolas.com/2017/12/28/converting-image-to-ascii-art.html); it explains the process well!
You might want to focus on what's actually being graded instead of making things too complicated. If ASCII art isn't necessary, just stick to what you can confidently program. But if you're set on including it, using a site to create the ASCII and then pasting it into your code is a straightforward option!
If your `escreva` function outputs to the normal terminal/shell, you could use ANSI codes to add color to your ASCII art. There are converters online that can turn images into ANSI art, too. If your editor has a built-in terminal that doesn’t support this, even plain ASCII should work well. You can try sites like [this one](https://www.asciiart.eu/image-to-ascii) for creating your ASCII art.
I had success using AI tools like ChatGPT for creating ASCII art! Just give it a prompt, and it can help you create a base you can tweak to fit your needs. Might be worth a shot!
If you're using Portugol, then yes, it's a real programming language, even if it's not widely known! To get ASCII art, there are a bunch of sites that can take an image and convert it into ASCII. Just search for 'image to ASCII art' and you’ll find options. Once you have the ASCII art, you can store it as a string and print it using the `escreva` function if that's something your language supports. Just keep in mind the complexity of your image – the simpler, the better, considering your current skill level!
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically