def __init__(self, points, center, color=None, width=0,
pygame_surface=None):
"""
Create centered figure from point list with center (x,y).
:param points: Vertices tuple list (ex. [(10,10), (10,5)...])
:type points: list
:param center: Center list (ex [10, 10])
:type center: list
:param color: Pygame color
:type color: pygame.Color
:param width: Border width (px)
:param pygame_surface: Pygame surface object
:type pygame_surface: pygame.display
"""
self._points = points
self._center = center
self._color = color
self._width = width
self._surface = pygame_surface
评论列表
文章目录