Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import *
- class glista:
- def __init__(self, n_kol=0, d=0, naziv='', boja='red'):
- self.n=n_kol
- self.d=d
- self.naziv=naziv
- self.boja=boja
- def crtanje(self):
- pencolor(self.boja)
- fillcolor(self.boja)
- for i in range(0,self.n):
- begin_fill()
- circle(40)
- end_fill()
- pu()
- fd((self.d/self.n))
- pd()
- pu()
- home()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement