#How to make circle without java fx
41 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @frail garden! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Do you want to draw the circle on the screen?
generally, where do you want to display the circle, how should it look in the end
Or do you want to write it in the console?
and if you want to draw it on the screen - Do you want to use Swing? SWT?
yes
it should be a circle in the terminal
with 10 spaces long diameter for example
its hsould look like a circle
it should be printed in the terminal
Ok and what have you tried?
nothing cuz i dont know how it works
You will have to print characters in a shape of circle. Also you will have to draw it line by line since Java do not support setting coordinates in a console
false*
ansi escape sequences can theoretically set the cursor coordinates
platform independent
it's just not a good way to do this
you're better of doing literally anything else
can you pls send code if you got time
ik but like i am desprate
i can think of like 3 different, better ways of doing this right now
don't do it via the ansi escape method
any would work but i want it in the terminal window
use Math.sin and Math.cos to make the circle, record rounded positions in a map, go through the map top to bottom, print out the entries line by line
is there code of this availble online ?