View difference between Paste ID: aWKxhbr8 and xG2HKBQi
SHOW: | | - or go back to the newest paste.
1
# -*- coding: utf-8 -*-
2
import turtle as t
3
#import random
4
t.setup(width=600, height=600)
5
t.speed(10)
6
t.color("lime")
7
t.bgcolor('black')
8
t.shape('turtle')
9
t.pu()
10
for i in range(-300,300,20):
11
    t.setpos(i,-300)
12
    t.pu()
13
    t.home()
14
    t.pd()
15
    t.setpos(i*-1,i)
16
for i in range(300,-300,-20):
17
    t.setpos(i,300)
18
    t.pu()
19
    t.home()
20
    t.pd()
21
    t.setpos(i*-1,i)
22
t.exitonclick()