问题描述
width = 1400
height = 950
arcade_title = "r/pics"
arcade.open_window(width,height,arcade_title)
arcade.set_background_color(arcade.color.WHITE)
img = arcade.load_texture('google.jpeg')
arcade.draw_texture_rectangle (700,475,700,img)
arcade.start_render()
arcade.finish_render()
arcade.run()
这是我的代码。当我运行它时,没有图像显示。窗口一直保持白色。
解决方法
快速编辑对我有用(如我在评论中所述):
width = 1400
height = 950
arcade_title = "r/pics"
arcade.open_window(width,height,arcade_title)
arcade.start_render()
arcade.set_background_color(arcade.color.WHITE)
img = arcade.load_texture('google.jpeg')
arcade.draw_texture_rectangle (700,475,700,img)
arcade.finish_render()
arcade.run()