Skip to content

Commit 99cd2b8

Browse files
committed
Fix indentation in docs
Signed-off-by: martinRenou <[email protected]>
1 parent ff37a4a commit 99cd2b8

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

docs/source/drawing_paths.rst

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Using the Path2D class is very useful and efficient when you want to reuse the s
1111

1212
See https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths for documentation about SVG paths.
1313

14-
- ``Path2D(value)``: Creates a Path2D given the SVG path string value.
14+
- ``Path2D(value)``:
15+
Creates a Path2D given the SVG path string value.
1516

1617
.. code:: Python
1718
@@ -55,14 +56,14 @@ extra steps:
5556
Here are the functions used to perform these steps:
5657

5758
- ``begin_path()``:
58-
Creates a new path. Once created, future drawing commands are directed into the path and used to build the path up.
59+
Creates a new path. Once created, future drawing commands are directed into the path and used to build the path up.
5960
- Path commands like ``line_to`` and ``arc``
6061
- ``close_path()``:
61-
Adds a straight line to the path, going to the start of the current path.
62+
Adds a straight line to the path, going to the start of the current path.
6263
- ``stroke()``:
63-
Draws the shape by stroking its outline.
64+
Draws the shape by stroking its outline.
6465
- ``fill(rule)``:
65-
Draws a solid shape by filling the path's content area. The given fill rule is applied, possible rules are `nonzero` and `evenodd`.
66+
Draws a solid shape by filling the path's content area. The given fill rule is applied, possible rules are `nonzero` and `evenodd`.
6667

6768
.. code:: Python
6869
@@ -88,27 +89,27 @@ Path commands
8889
Here are the available draw commands:
8990

9091
- ``move_to(x, y)``:
91-
Moves the pen to the coordinates specified by x and y. This does not actually draw anything.
92+
Moves the pen to the coordinates specified by x and y. This does not actually draw anything.
9293
- ``line_to(x, y)``:
93-
Add a straight line to the current path by connecting the path’s last point to the specified (x, y) coordinates.
94+
Add a straight line to the current path by connecting the path’s last point to the specified (x, y) coordinates.
9495
- ``arc(x, y, radius, start_angle, end_angle, anticlockwise=False)``:
95-
Add a circular arc centered at (x, y) with a radius
96-
of ``radius`` to the current path. The path starts at ``start_angle`` and ends at ``end_angle`` in radians, and travels in the direction given by
97-
``anticlockwise`` (defaulting to clockwise: False).
96+
Add a circular arc centered at (x, y) with a radius
97+
of ``radius`` to the current path. The path starts at ``start_angle`` and ends at ``end_angle`` in radians, and travels in the direction given by
98+
``anticlockwise`` (defaulting to clockwise: False).
9899
- ``arc_to(x1, y1, x2, y2, radius)``:
99-
Add a circular arc to the current path. Using the given control points (``x1``, ``y1``)
100-
and (``x2``, ``y2``) and the ``radius``.
100+
Add a circular arc to the current path. Using the given control points (``x1``, ``y1``)
101+
and (``x2``, ``y2``) and the ``radius``.
101102
- ``ellipse(x, y, radius_x, radius_y, rotation, start_angle, end_angle, anticlockwise=False)``:
102-
Add an ellipse centered at ``(x, y)`` with
103-
the radii ``radius_x`` and ``radius_y`` to the current path.
103+
Add an ellipse centered at ``(x, y)`` with
104+
the radii ``radius_x`` and ``radius_y`` to the current path.
104105
- ``quadratic_curve_to(cp1x, cp1y, x, y)``:
105-
Add a quadratic Bezier curve to the current path.
106-
It requires two points: the first one is a control point and the second one is the end point. The starting point is the latest point in the current path, which can be changed using ``move_to()`` before creating the quadratic Bezier curve.
106+
Add a quadratic Bezier curve to the current path.
107+
It requires two points: the first one is a control point and the second one is the end point. The starting point is the latest point in the current path, which can be changed using ``move_to()`` before creating the quadratic Bezier curve.
107108
- ``bezier_curve_to(cp1x, cp1y, cp2x, cp2y, x, y)``:
108-
Add a cubic Bezier curve to the current path.
109-
It requires three points: the first two are control points and the third one is the end point. The starting point is the latest point in the current path, which can be changed using ``move_to()`` before creating the Bezier curve.
109+
Add a cubic Bezier curve to the current path.
110+
It requires three points: the first two are control points and the third one is the end point. The starting point is the latest point in the current path, which can be changed using ``move_to()`` before creating the Bezier curve.
110111
- ``rect(x, y, width, height)``:
111-
Draws a rectangle whose top-left corner is specified by (``x``, ``y``) with the specified ``width`` and ``height``.
112+
Draws a rectangle whose top-left corner is specified by (``x``, ``y``) with the specified ``width`` and ``height``.
112113

113114

114115
Examples

0 commit comments

Comments
 (0)