1
Hi, I wanted to find out how to invert inside the canvas (Tkinter) a Poligono.
from Tkinter import *
Tela_principal = Tk()
Tela_principal.geometry('300x300+10+300')
area_2 = Frame(bg='snow', height=200, width=200, cursor='dotbox')
fundo_area2 = Canvas(area_2, bg='OrangeRed4', height=180, width=180)
area_2.place(x=10, y=10)
fundo_area2.place(x=4, y=4)
x = 5
y = 5
forma = fundo_area2.create_polygon([
(51 + x, 100 + y), (151 + x, 130 + y),
(151 + x, 50 + y)],
fill='gray35', outline='black', tag='personagem')
Tela_principal.mainloop()
that is, in this example the triangle turn to the right. Of course, this would be a simple example. My intention is to reverse polygons with numerous vertices. Anybody got any ideas? Thanks!
Yes, in a simple example resolves, however a polygon with 30 vertices that locks me.
– KARPSS