How can I add an image to my project in Portugol?

0
3
Asked By CuriousCoder89 On

I'm struggling with my final project for a required college class where we use a programming language called Portugol. Honestly, I don't know much about programming, and the language seems so basic that I can't even incorporate images. I'm trying to create a Mario Kart character selection screen, and I think having an image – even a simple one made of ASCII art – would really help me score some extra points. I've searched for websites to generate ASCII art from images but haven't had much luck. Does anyone have suggestions or tips for how I can include an image in my project using Portugol?

6 Answers

Answered By ASCIIArtist77 On

To decode an image into ASCII art in Portugol, look for a site that can convert the image for you and then input that into your project. If you’re familiar with JavaScript, this guide might help you understand the process better: [link](https://www.jonathan-petitcolas.com/2017/12/28/converting-image-to-ascii-art.html).

Answered By SimpleSolutions91 On

I suggest keeping it simple and not stressing too much about the aesthetics. Focus on functionality first, then if you find a way to include an image later, that would be great!

Answered By ArtisticNerd25 On

Portugol might be niche, but it's definitely a real language! To create ASCII art, you may want to search for sites that can convert images to ASCII. If you can use strings in your program, you could convert an image to ASCII art and then add that as a string in your code. Just keep in mind that the more complex your ASCII art, the more challenging it will be to make it fit your project! So maybe aim for something simple to start.

PixelPursuer42 -

True, it seems like it has Portuguese keywords for teaching. Just make sure you clarify what exactly you're trying to do with the image in your project. If you can start with something basic, like a simple colored shape, that might be a good first step before adding more complexity.

Answered By CreativeCoder99 On

I actually got some help from ChatGPT to create ASCII art for my project. It needed some tweaking afterwards, but it was a solid starting point. You might find it useful too, or consider trying other AI tools!

Answered By TechSavvySam On

Instead of overcomplicating your project, focus on what’s essential for grading. If you can find a way to generate ASCII art from an image, that could be your best bet. A website like the one mentioned can help!

Answered By ANSIWizard10 On

If your `escreva` function outputs to a terminal, try using ANSI codes for colors and convert your image to ANSI art using free online converters. But if it’s an in-built terminal that doesn’t support ANSI, plain ASCII should work just fine. Check out this site for converting images to ASCII: [link](https://www.asciiart.eu/image-to-ascii).

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.