Skip to content

Commit 500070f

Browse files
committed
Add docs for drawing circles
Signed-off-by: martinRenou <[email protected]>
1 parent 2d5d068 commit 500070f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/source/drawing_shapes.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,22 @@ You can also clear a certain canvas rectangle area:
6666
6767
.. image:: images/rects.png
6868

69-
Drawing circles
70-
---------------
69+
Drawing arcs and circles
70+
------------------------
7171

72-
There are four methods that draw circles on the canvas:
72+
There are methods that draw arcs/circles on the canvas:
7373

7474
- ``fill_arc(x, y, radius, start_angle, end_angle, anticlockwise=False)``: Draw a filled arc centered at ``(x, y)`` with a radius of ``radius``.
7575
- ``stroke_arc(x, y, radius, start_angle, end_angle, anticlockwise=False)``: Draw an arc outline centered at ``(x, y)`` with a radius of ``radius``.
7676
- ``fill_arcs(x, y, radius, start_angle, end_angle, anticlockwise=False)``: Draw filled arcs centered at ``(x, y)`` with a radius of ``radius``. Where ``x``, ``y``, ``radius`` and other arguments are NumPy arrays, lists or scalar values.
7777
- ``stroke_arcs(x, y, radius, start_angle, end_angle, anticlockwise=False)``: Draw an arc outlines centered at ``(x, y)`` with a radius of ``radius``. Where ``x``, ``y``, ``radius`` and other arguments are NumPy arrays, lists or scalar values.
7878

79+
- ``fill_circle(x, y, radius)``: Draw a filled circle centered at ``(x, y)`` with a radius of ``radius``.
80+
- ``stroke_circle(x, y, radius)``: Draw an circle outline centered at ``(x, y)`` with a radius of ``radius``.
81+
- ``fill_circles(x, y, radius)``: Draw filled circles centered at ``(x, y)`` with a radius of ``radius``. Where ``x``, ``y``, ``radius`` are NumPy arrays, lists or scalar values.
82+
- ``stroke_circles(x, y, radius)``: Draw a circle outlines centered at ``(x, y)`` with a radius of ``radius``. Where ``x``, ``y``, ``radius`` are NumPy arrays, lists or scalar values.
83+
84+
7985
.. code:: Python
8086
8187
from math import pi
@@ -88,7 +94,7 @@ There are four methods that draw circles on the canvas:
8894
canvas.stroke_style = 'blue'
8995
9096
canvas.fill_arc(60, 60, 50, 0, pi)
91-
canvas.stroke_arc(60, 60, 40, 0, 2 * pi)
97+
canvas.stroke_circle(60, 60, 40)
9298
9399
canvas
94100

0 commit comments

Comments
 (0)