from pygame import draw
pygame.draw.
circle
(surface, color, center, radius, ?)Рисует окружность
pygame.draw.
py
()draw.circle(window_surface, (0, 0, 0), (300, 50), 20, 0)
pygame.draw.
ellipse
(surface, color, points, ?)Рисует эллипс
draw.ellipse(window_surface, (0, 0, 0), (300, 350, 560, 100), 2)
pygame.draw.
line
(surface, color, point1, point2, ?)Рисует линию
draw.line(window_surface, (0, 0, 0), (60, 50), (120, 70), 5)
pygame.draw.
polygon
(surface, color, rect)Рисут многоугольник
draw.polygon(window_surface, (0, 0, 0), ((146, 0), (236, 277)))
pygame.draw.
rect
(surface, color, rect)Рисует прямоугольную область
draw.rect(window_surface, (0, 0, 0), (0, 10, 10, 0))