from scene import *
class Game (Scene):
def setup(self):
self.background_color = 'black'
def draw(self):
x = self.size.w
y = self.size.h
stroke('green')
stroke_weight(2)
line(0,y/2,x,y/2)

if __name__ == '__main__':
run(Game(), PORTRAIT, show_fps=True)


これで描けるがドキュメント読んで例題を真似するところから始めろ

英語が読めないのかもしれんが、プログラムやりたければ英語は必須
Google翻訳でも辞書でも使いながら読め