# Day 18
#    ___                               _                   ___                             _         _                 _   _
#   / __\ __ __ _ _ __ ___   ___      | |__  _   _        / __\ __ __ _ _ __ ___   ___    /_\  _ __ (_)_ __ ___   __ _| |_(_) ___  _ __
#  / _\| '__/ _` | '_ ` _ \ / _ \_____| '_ \| | | |_____ / _\| '__/ _` | '_ ` _ \ / _ \  //_\\| '_ \| | '_ ` _ \ / _` | __| |/ _ \| '_ \
# / /  | | | (_| | | | | | |  __/_____| |_) | |_| |_____/ /  | | | (_| | | | | | |  __/ /  _  \ | | | | | | | | | (_| | |_| | (_) | | | |
# \/   |_|  \__,_|_| |_| |_|\___|     |_.__/ \__, |     \/   |_|  \__,_|_| |_| |_|\___| \_/ \_/_| |_|_|_| |_| |_|\__,_|\__|_|\___/|_| |_|
#                                            |___/

from tkinter import *
import random
import time

# Window
root=Tk()
root.title("Simple Animation")
root.geometry("640x640+1+1")

# Canvas
c=Canvas(root,width=640,height=640,bg="black")
c.place(x=0,y=0)

# Load images
img1 = PhotoImage(file='phodo/Wreck.png')
img2 = PhotoImage(file='phodo/Abstractionism.png')
img3 = PhotoImage(file='phodo/Sepia.png')
img4 = PhotoImage(file='phodo/Wave.png')
img5 = PhotoImage(file='phodo/Anime1.png')
img6 = PhotoImage(file='phodo/Colorful.png')
img7 = PhotoImage(file='phodo/Comic.png')
img8 = PhotoImage(file='phodo/Cubism.png')
img9 = PhotoImage(file='phodo/Disco.png')
img10 = PhotoImage(file='phodo/Fairy Tale.png')
img11 = PhotoImage(file='phodo/Fauvism.png')
img12 = PhotoImage(file='phodo/Graffiti.png')
img13 = PhotoImage(file='phodo/Impressionism.png')
img14 = PhotoImage(file='phodo/Ink.png')
img15 = PhotoImage(file='phodo/La Muse.png')
img16 = PhotoImage(file='phodo/Mosaic.png')
img17 = PhotoImage(file='phodo/Picabia.png')
img18 = PhotoImage(file='phodo/Pointillism.png')
img19 = PhotoImage(file='phodo/Rain.png')
img20 = PhotoImage(file='phodo/Scream.png')
img21 = PhotoImage(file='phodo/Sketch.png')
img22 = PhotoImage(file='phodo/Splash.png')
img23 = PhotoImage(file='phodo/Surrealism.png')
img24 = PhotoImage(file='phodo/Three.png')
img25 = PhotoImage(file='phodo/Udnie.png')


# _,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,_
# Animation

frame = 1
animated = True
image = c.create_image(320,320,image=img1)

while animated:
    if frame ==1 :
        c.itemconfig(image, image=img1)
    if frame ==2 :
        c.itemconfig(image, image=img2)
    if frame ==3 :
        c.itemconfig(image, image=img3)
    if frame ==4 :
        c.itemconfig(image, image=img4)
    if frame ==5 :
        c.itemconfig(image, image=img5)
    if frame ==6 :
        c.itemconfig(image, image=img6)
    if frame ==7 :
        c.itemconfig(image, image=img7)
    if frame ==8 :
        c.itemconfig(image, image=img8)
    if frame ==9 :
        c.itemconfig(image, image=img9)
    if frame ==10 :
        c.itemconfig(image, image=img10)
    if frame ==11 :
        c.itemconfig(image, image=img11)
    if frame ==12 :
        c.itemconfig(image, image=img12)
    if frame ==13 :
        c.itemconfig(image, image=img13)
    if frame ==14 :
        c.itemconfig(image, image=img14)
    if frame ==15 :
        c.itemconfig(image, image=img15)
    if frame ==16 :
        c.itemconfig(image, image=img16)
    if frame ==17 :
        c.itemconfig(image, image=img17)
    if frame ==18 :
        c.itemconfig(image, image=img18)
    if frame ==19 :
        c.itemconfig(image, image=img19)
    if frame ==20 :
        c.itemconfig(image, image=img20)
    if frame ==21 :
        c.itemconfig(image, image=img21)
    if frame ==22 :
        c.itemconfig(image, image=img22)
    if frame ==23 :
        c.itemconfig(image, image=img23)
    if frame ==24 :
        c.itemconfig(image, image=img24)
    if frame ==25 :
        c.itemconfig(image, image=img25)

    # frame delay
    time.sleep(.1)
    frame +=1

    if frame==26 :
        frame = 1

    root.update() # redraw canvas

root.mainloop()