猫史档案馆


【Python作品分享】日出1【教程贴】

用户:涵涵出品涵涵出品查看:0 回复:0 评论:0 创建时间:2022-10-06T19:44:39


【作品展示】

center_image

 

【作品介绍】

good

 

【作品源代码】

from arcade import *
from arcade import color
A = 800
H = 600
SUNRISE = "日出"
class ceshilei(Window):
    def __init__(self, a, h, sunrise):
        super().__init__(a, h, sunrise)
        self.setup()
    def setup(self):
        set_background_color(color.ORANGE_PEEL)
    def on_draw(self):
        start_render()
        self.lei()
    def lei(self):
        draw_point(400, 300, color.LIGHT_RED_OCHRE, 70)
        draw_rectangle_outline(400, 300, 100, 100, color.RED, 30)
        draw_line(0, 150, 800, 150, color.LA_SALLE_GREEN, 300)
if __name__ == '__main__':
    game = ceshilei(A, H, SUNRISE)
    run()

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页