centered_figure.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:CC3501-2017-1 作者: ppizarror 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号