промежутое
This commit is contained in:
28
programm/turtle_drawing.py
Normal file
28
programm/turtle_drawing.py
Normal file
@@ -0,0 +1,28 @@
|
||||
import turtle as t
|
||||
from math import*
|
||||
import tqdm as tq
|
||||
|
||||
|
||||
|
||||
t.color('red', 'yellow')
|
||||
t.begin_fill()
|
||||
t.shapesize()
|
||||
t.resizemode('user')
|
||||
t.shapesize(1,1,0.1)
|
||||
|
||||
def load_normalaze():
|
||||
t.setx(-100)
|
||||
t.setx(100)
|
||||
t.setx(0)
|
||||
t.sety(100)
|
||||
t.sety(-100)
|
||||
t.sety(0)
|
||||
|
||||
load_normalaze()
|
||||
for i in tq.tqdm(range(100), ncols=80):
|
||||
|
||||
t.setx(i)
|
||||
t.sety(sin(i)*30)
|
||||
|
||||
t.end_fill()
|
||||
t.done()
|
||||
Reference in New Issue
Block a user