phrack / ShootOFF-legacy

An open source framework to enhance laser dry fire training.
BSD 4-Clause "Original" or "Old" License
30 stars 17 forks source link

Scaled animated targets should not have regions that drift together/apart. #105

Open phrack opened 9 years ago

phrack commented 9 years ago

All shapes grow or shrink from the middle, thus if you have shapes that are not centered on each other, they grow together or apart as you grow or shring the shape respectively. The way to fix this is to calculate the center of the target, then ensure a regions relative position from that center stays the same based on some anchor (anchor defined by shape tag?).

phrack commented 9 years ago

There is a bug where regions with type "image" don't get scaled by the scale method of the tkinter canvas. This bug makes closing this issue a bitch.