pygamestella.py 文件源码

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

项目:pytari2600 作者: ajgrah2000 项目源码 文件源码
def __init__(self, *args):
        # 'default_color' is used by stella init, need to set before super
        self.default_color = 0
        self._colors = PygameColors()
        super(PygameStella, self).__init__(*args)

        # Test if 'PixelArray' is part of pygame
        # pygame_cffi, may not have PixelArray

        if has_numpy:
            # Use a faster blit with a numpy array, if available.      
            self.driver_draw_display = self._draw_using_numpy_array
        elif hasattr(pygame, 'PixelArray'):
            self.driver_draw_display = self._draw_using_pixel_array
        else:
            self.driver_draw_display = self._draw_using_set_at
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号