13 lines
320 B
Python
13 lines
320 B
Python
from tkinter import Tk, Canvas, PhotoImage, mainloop
|
|
from math import sin
|
|
|
|
WIDTH, HEIGHT = 640, 480
|
|
|
|
window = Tk()
|
|
canvas = Canvas(window, width=WIDTH, height=HEIGHT, bg="#000000")
|
|
canvas.pack()
|
|
img = PhotoImage(width=WIDTH, height=HEIGHT)
|
|
canvas.create_image((WIDTH/2, HEIGHT/2), image=img, state="normal")
|
|
|
|
mainloop()
|