@@ -23,10 +23,9 @@ bounding box that encloses the affected area.
2323All the drawing functions accept a color argument that can be one of the
2424following formats:
2525
26- - a :mod: `pygame.Color ` object
27- - an ``(RGB) `` triplet (tuple/list)
28- - an ``(RGBA) `` quadruplet (tuple/list)
29- - an integer value that has been mapped to the surface's pixel format
26+ - a :mod: `pygame.Color ` object, or a type (apart from ``int ``) that can be passed to
27+ its constructor
28+ - an ``int `` value which must be mapped to the pixel format of the surface
3029 (see :func: `pygame.Surface.map_rgb ` and :func: `pygame.Surface.unmap_rgb `)
3130
3231A color's alpha value will be written directly into the surface (if the
@@ -53,7 +52,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
5352 :param Surface surface: surface to draw on
5453 :param color: color to draw with, the alpha value is optional if using a
5554 tuple ``(RGB[A]) ``
56- :type color: Color or int or tuple(int, int, int, [int])
55+ :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
5756 :param Rect rect: rectangle to draw, position and dimensions
5857 :param int width: (optional) used for line thickness or to indicate that
5958 the rectangle is to be filled (not to be confused with the width value
@@ -111,7 +110,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
111110 :param Surface surface: surface to draw on
112111 :param color: color to draw with, the alpha value is optional if using a
113112 tuple ``(RGB[A]) ``
114- :type color: Color or int or tuple(int, int, int, [int])
113+ :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
115114 :param points: a sequence of 3 or more (x, y) coordinates that make up the
116115 vertices of the polygon, each *coordinate * in the sequence must be a
117116 tuple/list/:class: `pygame.math.Vector2 ` of 2 ints/floats,
@@ -159,7 +158,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
159158 :param Surface surface: surface to draw on
160159 :param color: color to draw with, the alpha value is optional if using a
161160 tuple ``(RGB[A]) ``
162- :type color: Color or int or tuple(int, int, int, [int])
161+ :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
163162 :param center: center point of the circle as a sequence of 2 ints/floats,
164163 e.g. ``(x, y) ``
165164 :type center: tuple(int or float, int or float) or
@@ -218,7 +217,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
218217 :param Surface surface: surface to draw on
219218 :param color: color to draw with, the alpha value is optional if using a
220219 tuple ``(RGB[A]) ``
221- :type color: Color or int or tuple(int, int, int, [int])
220+ :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
222221 :param Rect rect: rectangle to indicate the position and dimensions of the
223222 ellipse, the ellipse will be centered inside the rectangle and bounded
224223 by it
@@ -259,7 +258,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
259258 :param Surface surface: surface to draw on
260259 :param color: color to draw with, the alpha value is optional if using a
261260 tuple ``(RGB[A]) ``
262- :type color: Color or int or tuple(int, int, int, [int])
261+ :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
263262 :param Rect rect: rectangle to indicate the position and dimensions of the
264263 ellipse which the arc will be based on, the ellipse will be centered
265264 inside the rectangle
@@ -309,7 +308,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
309308 :param Surface surface: surface to draw on
310309 :param color: color to draw with, the alpha value is optional if using a
311310 tuple ``(RGB[A]) ``
312- :type color: Color or int or tuple(int, int, int, [int])
311+ :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
313312 :param start_pos: start position of the line, (x, y)
314313 :type start_pos: tuple(int or float, int or float) or
315314 list(int or float, int or float) or Vector2(int or float, int or float)
@@ -361,7 +360,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
361360 :param Surface surface: surface to draw on
362361 :param color: color to draw with, the alpha value is optional if using a
363362 tuple ``(RGB[A]) ``
364- :type color: Color or int or tuple(int, int, int, [int])
363+ :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
365364 :param bool closed: if ``True `` an additional line segment is drawn between
366365 the first and last points in the ``points `` sequence
367366 :param points: a sequence of 2 or more (x, y) coordinates, where each
@@ -482,7 +481,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
482481 :param Surface surface: surface to draw on
483482 :param color: color to draw with, the alpha value is optional if using a
484483 tuple ``(RGB[A]) ``
485- :type color: Color or int or tuple(int, int, int, [int])
484+ :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
486485 :param start_pos: start position of the line, (x, y)
487486 :type start_pos: tuple(int or float, int or float) or
488487 list(int or float, int or float) or Vector2(int or float, int or float)
@@ -516,7 +515,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
516515 :param Surface surface: surface to draw on
517516 :param color: color to draw with, the alpha value is optional if using a
518517 tuple ``(RGB[A]) ``
519- :type color: Color or int or tuple(int, int, int, [int])
518+ :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
520519 :param bool closed: if ``True `` an additional line segment is drawn between
521520 the first and last points in the ``points `` sequence
522521 :param points: a sequence of 2 or more (x, y) coordinates, where each
0 commit comments