cenada inf 1. Window + drawing surface import tkinter as tk root = tk.Tk() canvas = tk.Canvas(root, width=800, height=600, bg="white") canvas.pack() root.mainloop() 2. Filled circle at (x, y) with radius r and color col canvas.create_oval(x-r, y-r, x+r, y+r, fill=col, outline=col) 3. Edge (line) between (x1, y1) and (x2, y2) with color col canvas.create_line(x1, y1, x2, y2, fill=col, width=2) 4. Text label at (x, y) canvas.create_text(x, y, text="your text", fill="black", font=("Arial", 12)) 5. colors: "red", "green", "blue", "yellow", "cyan", "magenta", "orange", "gray", "black", "white" "#00ff00" https://www.tcl.tk/man/tcl8.6/TkCmd/colors.htm 6. change color of object based on its ID: canvas.itemconfig(circle_id, fill="red", outline="red")