olls / graphics

A console based graphics engine for simple Unicode games and animations.
GNU General Public License v3.0
11 stars 4 forks source link

New Rotate Method #14

Closed olls closed 10 years ago

olls commented 10 years ago

The new rotate method (c0c8bbbb6b6a3b7b973eebf9b70bfbbb37521bd9) is causing the images x and y coords to be swapped. I don't think this is a problem with the actual method, because that has been tested, but it is probably to do with #7

olls commented 10 years ago

It turns out there was no problem with the rotate method, the old one was incorrect and the clock had been built to deal with it. The angles are all mirrored in the y direction because of the way the canvas coords go from top down. The clock now compensates for this by negating the angle and adding 180 to it. 3383785ab3f290228dd963f5d0799f6a84f3a43c