caves.py 文件源码

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

项目:caves 作者: mikaelho 项目源码 文件源码
def fill(self):
    self.history = []
    self.future = []
    with ui.ImageContext(self.width, self.height) as ctx:
      ui.set_color('black')
      ui.fill_rect(0, 0, self.width, self.height)
#      iv = ui.ImageView(frame=self.bounds)
#      iv.image = ui.Image('playfields/origami.png')
#
#      img = snapshot(iv)
#      blend_mode = ui.B
#      ui.set_blend_mode(blend_mode)
      #iv.image.draw()
#      img.draw()
      self.img = ctx.get_image()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号