Skip to content
Snippets Groups Projects
Commit f2aa89f5 authored by rejenver's avatar rejenver
Browse files

Upload New File

parent 3e3f55cb
No related branches found
No related tags found
No related merge requests found
import turtle as t
def polygon(size, n, p):
for i in range(n):
for j in range(p):
t.back(size)
t.right(360/p)
t.forward(size)
t.left(360/n)
t.shape("turtle")
t.tracer(0,0)
polygon(20, 30, 20)
t.colormode(1.0)
def tar(size, n, p, plus):
for i in range(n):
for j in range(p):
t.pensize(3)
t.penup()
t.goto(-200 + plus*i, -100)
t.pendown()
t.color(j/ 5.0, 0.0, 0.0)
t.circle(40, steps = j+1)
tar(30, 5, 5, 100)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment