Friday, February 3, 2006

Friday 3rd

Yesterday was spent integrating the Circle code into the existing framework, and after making a suitable amount of tweaks I had the code in and working, with one small problem; I'd tweaked the code to make the circle draw from the top-left point (rather than the centre), to make it consistent with the other drawing tools.

However, for some reason, the circle would only increase in size in increments of 2. Took a while to work out that, in normal circumstances (when the circle is drawn from a centre point), increasing the width of the circle causes expansion in both directions; hence, the circle was increasing in steps of 2...!

Thus, today's session was spent changing the code back to the centre-based system, then adding the code to display animated tiles, masking, and symmetry. The final task involved creating the Circle Fill mode, which thankfully was a painless task (and merely a case of calling my line draw routine at key points).

With Circle Mode now in and working, the final task remaining (aside from bugs and documentation) is just the Undo/Redo code - hopefully I can get this cracked over the next few days...