I want to draw a circle in the console using characters instead of pixels, for this I need to know how many pixels are in each row. The diameter is given as input, you need to output a list with the width in pixels of each line of the picture
For example:
input: 7
output: [3, 5, 7, 7, 7, 5, 3]
input: 12
output: [4, 8, 10, 10, 12, 12, 12, 12, 10, 10, 8, 4]
How can this be implemented?
source https://stackoverflow.com/questions/70722545/draw-circle-in-console-using-python
Comments
Post a Comment