- Left Button Click -> add point
- Right Button Hold -> create rectangle selector
- Left Button Hold -> drag selector to translade
- Shift + Left Button Hold -> rotate selector
- Ctrl + Left Button Hold -> resize selector
interface.py-
points are stored in
self.pointsandself.selected_pointson the order they were draw on the canvas -
self.pointsarray store the real value of the pixel, but when ploted with the Interface.update() function it is ronded since there's no float pixel values -
rotation, scale and reflection take the object center as reference
-
can't have crossed lines/circles
-
- tkinter
- math