Click here to Skip to main content
15,891,677 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello .I'm wondering if I can draw letter "O" inside and print it to the terminal (in Arduino I can do it with byte data type)
I don't know if I'm being understandable,but if so,how can I do it using C language?
Also, can I draw any shape I want (like circle,rectangle ,etc)?
Do you have any ideas or link of how can I do it?
Thanks!!

What I have tried:

I have tried nothing yet,because I have no idea how to do it
Posted
Updated 4-Aug-20 22:43pm

Yes, you can draw shapes, print letters etc. See GDI+ - Win32 apps | Microsoft Docs[^].
 
Share this answer
 
Comments
Nick_is_asking 5-Aug-20 4:28am    
I forgot to say that I want to draw a shape without graphics.
See this link to understand what I mean:
https://www.arduino.cc/en/Reference/LiquidCrystalCreateChar
Richard MacCutchan 5-Aug-20 4:32am    
Well that is a totally different question. You can draw a simple shape using existing characters:
H    H  +------+
H    H  |      |
HHHHHH  |      |
H    H  |      |
H    H  +------+

But I suspect that is not what you are asking.
Nick_is_asking 5-Aug-20 4:36am    
no this is not what I want ,but thanks for your try.I want to draw and print letter "O" inside , to look like a ball (same size with letter "O").
Richard MacCutchan 5-Aug-20 4:41am    
You have two choices:
1. Draw a letter 'O' and then move it around the screen by redrawing lines in a console application. A very poor implementation.
2. Use GDI+ (or even the old C based GDI) and draw proper shapes in a Windows application.
Quote:
I forgot to say that I want to draw a shape without graphics.
See this link to understand what I mean:
https://www.arduino.cc/en/Reference/LiquidCrystalCreateChar

No. You cannot "add character shapes" to terminal applications - there is no facility for that, you would have to use Graphics for this. Nor can you draw shapes directly.

Terminal / console apps are meant to be simple text based programs - they aren't intended for flashy display work at all!

On the Arduino you can, because you have direct access to the hardware - that's not generally the case in applications.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900