Skip to content

Commit 3f073ff

Browse files
authored
Merge pull request #1 from radarhere/m-patch-1
Fixed unexpected indentation
2 parents 9300598 + 497f9e2 commit 3f073ff

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

docs/reference/ImageColor.rst

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,20 @@ Color Names
1616

1717
The ImageColor module supports the following string formats:
1818

19-
* Hexadecimal color specifiers, given as ``#rgb``, ``#rgba``, ``#rrggbb`` or ``#rrggbbaa``,
20-
with the following placeholders:
21-
- ``r``: red
22-
- ``g``: green
23-
- ``b``: blue
24-
- ``a``: alpha / opacity (can be used in combination with ``mode="RGBA"`` in :py:mod:`~PIL.ImageDraw`)
25-
19+
* Hexadecimal color specifiers, given as ``#rgb``, ``#rgba``, ``#rrggbb`` or
20+
``#rrggbbaa``, with the following placeholders:
21+
22+
- ``r`` red
23+
- ``g`` green
24+
- ``b`` blue
25+
- ``a`` alpha / opacity (can be used in combination with ``mode="RGBA"`` in
26+
:py:mod:`~PIL.ImageDraw`)
27+
2628
Examples:
27-
- ``#ff0000`` specifies pure red.
28-
- ``#ff0000aa`` specifies pure red with an opacity of 66.66% (aa = 170, opacity = 170/255).
29+
30+
- ``#ff0000`` specifies pure red.
31+
- ``#ff0000aa`` specifies pure red with an opacity of 66.66% (aa = 170, opacity =
32+
170/255).
2933

3034

3135
* RGB functions, given as ``rgb(red, green, blue)`` where the color values are

0 commit comments

Comments
 (0)