0% found this document useful (0 votes)
53 views4 pages

Programas Tiger Jython

Uploaded by

mencia.ulizar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views4 pages

Programas Tiger Jython

Uploaded by

mencia.ulizar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

from gturtle import*

makeTurtle()

def r():

rt (60)

fd (100)

rt (120)

fd (100)

rt (120)

fd (100)

def f():

ht()

repeat 6:

r()

def rad():

while True:

f()

delay (10)

clear()

rt (6)

makeTurtle()

rad()

def spirale (seite):

ht()

repeat 18:

fd (seite)

lt (90)
seite -= 3

makeTurtle()

spirale(200)

from gturtle import*

makeTurtle()

def q(seite):

repeat 4:

fd(seite)

rt(90)

makeTurtle

q(100)

from gturtle import *

def dreieck(color):

setPenColor(color)

forward(100)

left(120)

fd (100)

lt(120)

fd (100)

makeTurtle()

dreieck("red")

rt(150)
dreieck("blue")

rt(150)

dreieck("green")

rt(150)

dreieck("violet")

from gturtle import *

def pentagon( color, sidelength):

ht()

setPenColor(color)

repeat 5:

forward(sidelength)

left(72)

makeTurtle()

pentagon("red", 100)

left(120)

pentagon( "green", 80)

left(120)

pentagon("violet", 60)

from gturtle import *

def segment(s, w):

ht()
setPos(0, -100)

repeat 92:

forward(s)

right(w)

makeTurtle()

segment(300, 151)

You might also like