import turtle
turtle.colormode(255)
bob = turtle.Turtle()
bob.speed(0)
def spikeFlower(distance):
    for times in range(11):
        spike(20)
        bob.penup()
        bob.home()
        bob.pendown()
        bob.left(times * 36)
    
def spike(distance):
    for times in range(20):
        c = times * 12
        bob.color(c, c , c)
        bob.width(times * 2)
        bob.forward(distance)
        bob.left(10)

def tile(c):
    polygon(4,200, c)
    for times in range(4):
        polygon(3, 50, "black")
        bob.forward(50)
        polygon(3, 50, "black") 
        bob.forward(50)
        polygon(3, 50, "black")
        bob.forward(50)
        polygon(3, 50, "black")
        bob.forward(50)
        bob.left(90)

def rowtile(c):
    for times in range(4):
        tile(c)
        bob.forward(200)


def square(distance):
    for times in range(4):
        bob.forward(distance)
        bob.left(90)
        

def pentagon(distance):
    sides = 5
    angle = 360 / sides
    for times in range(sides):
        bob.forward(distance)
        bob.left(angle)


def triangle(distance):
    for times in range(3):
        bob.forward(distance)
        bob.left(120)

def polygon(sides, distance, c):
    angle = 360 / sides
    bob.color( c )
    bob.begin_fill()
    for times in range(sides):
        bob.forward(distance)
        bob.left(angle)
    bob.end_fill()


def jump(x,y):
    bob.penup()
    bob.goto(x,y)
    bob.pendown()


def star(distance, c):
     bob.color(c)
     bob.begin_fill()
     for times in range(5):
        bob.forward(distance)
        bob.left(144)
     bob.end_fill()                                                              

def explosion(distance, c):
    bob.color(c)
    bob.begin_fill()
    for times in range(8):
        bob.forward(distance)
        bob.left(135)
    bob.end_fill()
    

def figure1(distance, size, c):
    bob.color( c )
    bob.begin_fill()
    bob.circle(size)
    bob.end_fill()
    bob.forward(distance)
    bob.begin_fill()
    bob.circle(size)
    bob.end_fill()
    bob.left(45)
    bob.forward(distance)
    bob.right(90)
    bob.forward(distance)
    bob.left(45)
    bob.begin_fill()
    bob.circle(size)
    bob.end_fill()
    bob.forward(distance)
    bob.begin_fill()
    bob.circle(size)
    bob.end_fill()



def monster(c):
    bob.color(c)
    bob.begin_fill()
    bob.left(100)
    bob.forward(100)
    bob.circle(50)
    bob.left(90)
    bob.forward(100)
    bob.left(90)
    bob.forward(100)
    bob.left(135)
    bob.forward(35)
    bob.right(90)
    bob.forward(35)
    bob.left(90)
    bob.forward(35)
    bob.right(90)
    bob.forward(35)
    bob.end_fill()


def fadingTriangle():
    for times in range(100):
        c = (250 - times * 5, 250 - times * 5, 0)
        polygon(3, 450 - times * 8, c)


def Rasengan():
    bob.width(4)
    bob.circle(300)
    bob.left(150)
    bob.forward(15)
    bob.right(15)
    bob.forward(15)
    bob.right(15)
    bob.forward(15)
    bob.right(15)
    bob.forward(15)
    bob.right(15)
    bob.forward(15)
    bob.right(15)
    bob.forward(15)
    bob.right(15)
    bob.forward(15)
    bob.right(15)
    bob.forward(15)
    bob.right(15)
    bob.forward(15)
    bob.right(15)
    bob.forward(15)
    bob.right(15)
    bob.forward(15)
    bob.left(15)
    bob.forward(15)
    bob.left(15)
    bob.forward(15)
    bob.left(15)
    bob.forward(15)
    bob.left(15)
    bob.forward(15)
    bob.left(15)
    bob.forward(15)
    bob.left(15)
    bob.forward(15)
    bob.left(15)
    bob.forward(15)
    bob.left(15)
    bob.forward(15)
    bob.left(15)
    bob.forward(15)

   
