@@ -20,13 +20,8 @@ constrained to that area. The functions return a rectangle representing the
2020bounding area of changed pixels. This bounding rectangle is the 'minimum'
2121bounding box that encloses the affected area.
2222
23- All the drawing functions accept a color argument that can be one of the
24- following formats:
25-
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
29- (see :func: `pygame.Surface.map_rgb ` and :func: `pygame.Surface.unmap_rgb `)
23+ All the drawing functions accept a color argument that is compatible with
24+ :data: `pygame.typing.ColorLike `.
3025
3126A color's alpha value will be written directly into the surface (if the
3227surface contains pixel alphas), but the draw function will not draw
@@ -52,7 +47,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
5247 :param Surface surface: surface to draw on
5348 :param color: color to draw with, the alpha value is optional if using a
5449 tuple ``(RGB[A]) ``
55- :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
50+ :type color: :data: ` pygame.typing.ColorLike `
5651 :param Rect rect: rectangle to draw, position and dimensions
5752 :param int width: (optional) used for line thickness or to indicate that
5853 the rectangle is to be filled (not to be confused with the width value
@@ -110,7 +105,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
110105 :param Surface surface: surface to draw on
111106 :param color: color to draw with, the alpha value is optional if using a
112107 tuple ``(RGB[A]) ``
113- :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
108+ :type color: :data: ` pygame.typing.ColorLike `
114109 :param points: a sequence of 3 or more (x, y) coordinates that make up the
115110 vertices of the polygon, each point in the sequence must be a
116111 tuple/list/:class: `pygame.math.Vector2 ` of 2 ints/floats,
@@ -158,7 +153,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
158153 :param Surface surface: surface to draw on
159154 :param color: color to draw with, the alpha value is optional if using a
160155 tuple ``(RGB[A]) ``
161- :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
156+ :type color: :data: ` pygame.typing.ColorLike `
162157 :param center: center point of the circle as a sequence of 2 ints/floats,
163158 e.g. ``(x, y) ``
164159 :type center: tuple(int or float, int or float) or
@@ -219,7 +214,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
219214 :param Surface surface: surface to draw on
220215 :param color: color to draw with, the alpha value is optional if using a
221216 tuple ``(RGB[A]) ``
222- :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
217+ :type color: :data: ` pygame.typing.ColorLike `
223218 :param center: center point of the circle as a sequence of 2 ints/floats,
224219 e.g. ``(x, y) ``
225220 :type center: tuple(int or float, int or float) or
@@ -273,7 +268,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
273268 :param Surface surface: surface to draw on
274269 :param color: color to draw with, the alpha value is optional if using a
275270 tuple ``(RGB[A]) ``
276- :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
271+ :type color: :data: ` pygame.typing.ColorLike `
277272 :param Rect rect: rectangle to indicate the position and dimensions of the
278273 ellipse, the ellipse will be centered inside the rectangle and bounded
279274 by it
@@ -314,7 +309,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
314309 :param Surface surface: surface to draw on
315310 :param color: color to draw with, the alpha value is optional if using a
316311 tuple ``(RGB[A]) ``
317- :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
312+ :type color: :data: ` pygame.typing.ColorLike `
318313 :param Rect rect: rectangle to indicate the position and dimensions of the
319314 ellipse which the arc will be based on, the ellipse will be centered
320315 inside the rectangle
@@ -364,7 +359,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
364359 :param Surface surface: surface to draw on
365360 :param color: color to draw with, the alpha value is optional if using a
366361 tuple ``(RGB[A]) ``
367- :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
362+ :type color: :data: ` pygame.typing.ColorLike `
368363 :param start_pos: start position of the line, (x, y)
369364 :type start_pos: tuple(int or float, int or float) or
370365 list(int or float, int or float) or Vector2(int or float, int or float)
@@ -416,7 +411,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
416411 :param Surface surface: surface to draw on
417412 :param color: color to draw with, the alpha value is optional if using a
418413 tuple ``(RGB[A]) ``
419- :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
414+ :type color: :data: ` pygame.typing.ColorLike `
420415 :param bool closed: if ``True `` an additional line segment is drawn between
421416 the first and last points in the ``points `` sequence
422417 :param points: a sequence of 2 or more (x, y) coordinates, where each
@@ -474,7 +469,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
474469 :param Surface surface: surface to draw on
475470 :param color: color to draw with, the alpha value is optional if using a
476471 tuple ``(RGB[A]) ``
477- :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
472+ :type color: :data: ` pygame.typing.ColorLike `
478473 :param start_pos: start position of the line, (x, y)
479474 :type start_pos: tuple(int or float, int or float) or
480475 list(int or float, int or float) or Vector2(int or float, int or float)
@@ -513,7 +508,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
513508 :param Surface surface: surface to draw on
514509 :param color: color to draw with, the alpha value is optional if using a
515510 tuple ``(RGB[A]) ``
516- :type color: Color or string (for :doc: ` color_list `) or int or tuple(int, int, int, [int])
511+ :type color: :data: ` pygame.typing.ColorLike `
517512 :param bool closed: if ``True `` an additional line segment is drawn between
518513 the first and last points in the ``points `` sequence
519514 :param points: a sequence of 2 or more (x, y) coordinates, where each
0 commit comments