0
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, 700, img)

arcade.start_render()

arcade.finish_render()

arcade.run()

这是我的代码。当我运行它时,没有图像显示。窗户只是保持白色。

4

1 回答 1

0

快速编辑对我有用(正如我在评论中所说):

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, 700, img)

arcade.finish_render()

arcade.run()
于 2020-09-21T02:25:00.540 回答