#!/usr/bin/env python
# -*- coding: utf8 -*-
# Soubor:  20111010-Mon-zelva.py
# Datum:   10.10.2011 09:01
# Autor:   Marek Nožka, nozka <@t> spseol <d.t> cz
# Licence: GNU/GPL 

import turtle as tt 

###################################################

# přesune želvu na zadané souřadnice
def presun(x,y):
    tt.up()
    tt.goto(x,y)
    tt.down()

# podprogram nakreslí n-úhelník
#     n -- počet úhlů
#  krok -- velikost obrazce
def nUhelnik(n,krok):    
    for i in range(n):
        tt.forward(krok)
        tt.left(360/n)
###################################################

tt.speed(5)
tt.shape('turtle')

nUhelnik(5,100)
presun(-100,50)   
nUhelnik(9,31)
presun(200,-80)
nUhelnik(7,200)


tt.exitonclick()
