
def drawLevel(level,colors):
    background(colors['bg'])
    
    if level == 1:
        fill(colors['obstacle'])
        rect(390, 240, 220, 520)
        fill(colors['heavyGrass'])
        rect(400, 250, 200, 500)
        fill(colors['lightGrass'])
        rect(425,250,150,500)
        fill(colors['hole'])
        ellipse(500, 300, 35, 35)
    elif level == 2:
        fill(colors['obstacle'])
        rect(240, 190, 520, 620)
        fill(colors['heavyGrass'])
        rect(250, 200, 500, 600)
        fill(colors['lightGrass'])
        rect(250,225,500,550)
        fill(colors['obstacle'])
        rect(400, 450, 200, 100, 10)
        fill(colors['hole'])
        ellipse(500, 300, 35, 35)
    elif level == 3:
        fill(colors['obstacle'])
        rect(390, 240, 220, 520)
        fill(colors['lightGrass'])
        rect(400, 250, 200, 500)
        fill(colors['heavyGrass'])
        rect(400, 350, 200, 300)
        fill(colors['hole'])
        ellipse(500, 300, 35, 35)
    elif level == 4:
        fill(colors['obstacle'])
        rect(390,360,220,400)
        rect(300,460,90,55)
        fill(colors['lightGrass'])
        rect(400,370,200,380)
        rect(355,470,45,35)
        fill(colors['heavyGrass'])
        rect(310,470,45,35)
        rect(400,370,200,100)
        fill(colors['hole'])
        ellipse(327,487,35,35)
        fill(colors['obstacle'])
        rect(500,575,100,50)
        rect(400,540,20,25)
    elif level == 5:
        fill(colors['obstacle'])
        rect(390, 240, 220, 520)
        fill(colors['lightGrass'])
        rect(400, 250, 200, 500)
        fill(colors['obstacle'])
        rect(475,350,50,300)
        fill(colors['right'])
        rect(400,250,75,500)
        fill(colors['left'])
        rect(525,250,75,500)
        fill(colors['hole'])
        ellipse(500, 300, 35, 35)
    elif level == 6:
        fill(colors['obstacle'])
        rect(400,550,200,200)
        rect(300,550,100,55)
        rect(300,350,55,200)
        rect(300,295,300,55)
        rect(545,350,55,155)
        fill(colors['lightGrass'])
        rect(410,635,180,105)
        rect(510,595,80,40)
        fill(colors['heavyGrass'])
        rect(555,450,35,45)
        fill(colors['left'])
        rect(345,560,245,35)
        fill(colors['up'])
        rect(310,340,35,255)
        fill(colors['right'])
        rect(310,305,245,35)
        fill(colors['down'])
        rect(555,305,35,145)
        fill(colors['hole'])
        ellipse(572,478,36,36)
        
                
