Python has tkinter, and tkinter has canvas. In tkinter, you can turn 2 connected lines into a curve, so you can turn a rectangle into an oval of the same size.
However, in HTML JavaScript, you need to put curve points 1 by 1 to make a curve, meaning the oval will be larger than the rectangle.
How do I achieve the same like in tkinter? If possible, what formula should I use to achieve such?
Here are the rough sketches I have in case you don't understand:
However, in HTML JavaScript, you need to put curve points 1 by 1 to make a curve, meaning the oval will be larger than the rectangle.
How do I achieve the same like in tkinter? If possible, what formula should I use to achieve such?
Here are the rough sketches I have in case you don't understand:
Last edited: