@@ -1730,9 +1730,10 @@ def paste(
1730
1730
details).
1731
1731
1732
1732
Instead of an image, the source can be a integer or tuple
1733
- containing pixel values. The method then fills the region
1734
- with the given color. When creating RGB images, you can
1735
- also use color strings as supported by the ImageColor module.
1733
+ containing pixel values. The method then fills the region
1734
+ with the given color. When creating RGB images, you can
1735
+ also use color strings as supported by the ImageColor module. See
1736
+ :ref:`colors` for more information.
1736
1737
1737
1738
If a mask is given, this method updates only the regions
1738
1739
indicated by the mask. You can use either "1", "L", "LA", "RGBA"
@@ -1988,7 +1989,8 @@ def putdata(
1988
1989
sequence ends. The scale and offset values are used to adjust the
1989
1990
sequence values: **pixel = value*scale + offset**.
1990
1991
1991
- :param data: A flattened sequence object.
1992
+ :param data: A flattened sequence object. See :ref:`colors` for more
1993
+ information about values.
1992
1994
:param scale: An optional scale value. The default is 1.0.
1993
1995
:param offset: An optional offset value. The default is 0.0.
1994
1996
"""
@@ -2047,7 +2049,7 @@ def putpixel(
2047
2049
Modifies the pixel at the given position. The color is given as
2048
2050
a single numerical value for single-band images, and a tuple for
2049
2051
multi-band images. In addition to this, RGB and RGBA tuples are
2050
- accepted for P and PA images.
2052
+ accepted for P and PA images. See :ref:`colors` for more information.
2051
2053
2052
2054
Note that this method is relatively slow. For more extensive changes,
2053
2055
use :py:meth:`~PIL.Image.Image.paste` or the :py:mod:`~PIL.ImageDraw`
@@ -3055,12 +3057,12 @@ def new(
3055
3057
:param mode: The mode to use for the new image. See:
3056
3058
:ref:`concept-modes`.
3057
3059
:param size: A 2-tuple, containing (width, height) in pixels.
3058
- :param color: What color to use for the image. Default is black.
3059
- If given, this should be a single integer or floating point value
3060
- for single-band modes, and a tuple for multi-band modes (one value
3061
- per band). When creating RGB or HSV images, you can also use color
3062
- strings as supported by the ImageColor module. If the color is
3063
- None, the image is not initialised.
3060
+ :param color: What color to use for the image. Default is black. If given,
3061
+ this should be a single integer or floating point value for single-band
3062
+ modes, and a tuple for multi-band modes (one value per band). When
3063
+ creating RGB or HSV images, you can also use color strings as supported
3064
+ by the ImageColor module. See :ref:`colors` for more information. If the
3065
+ color is None, the image is not initialised.
3064
3066
:returns: An :py:class:`~PIL.Image.Image` object.
3065
3067
"""
3066
3068
0 commit comments