Skip to content

Commit

Permalink
Merge pull request #1 from radarhere/m-patch-1
Browse files Browse the repository at this point in the history
Fixed unexpected indentation
  • Loading branch information
macjohnny committed Jan 7, 2021
2 parents 9300598 + 497f9e2 commit 3f073ff
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions docs/reference/ImageColor.rst
Expand Up @@ -16,16 +16,20 @@ Color Names

The ImageColor module supports the following string formats:

* Hexadecimal color specifiers, given as ``#rgb``, ``#rgba``, ``#rrggbb`` or ``#rrggbbaa``,
with the following placeholders:
- ``r``: red
- ``g``: green
- ``b``: blue
- ``a``: alpha / opacity (can be used in combination with ``mode="RGBA"`` in :py:mod:`~PIL.ImageDraw`)

* Hexadecimal color specifiers, given as ``#rgb``, ``#rgba``, ``#rrggbb`` or
``#rrggbbaa``, with the following placeholders:

- ``r`` red
- ``g`` green
- ``b`` blue
- ``a`` alpha / opacity (can be used in combination with ``mode="RGBA"`` in
:py:mod:`~PIL.ImageDraw`)

Examples:
- ``#ff0000`` specifies pure red.
- ``#ff0000aa`` specifies pure red with an opacity of 66.66% (aa = 170, opacity = 170/255).

- ``#ff0000`` specifies pure red.
- ``#ff0000aa`` specifies pure red with an opacity of 66.66% (aa = 170, opacity =
170/255).


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

0 comments on commit 3f073ff

Please sign in to comment.