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...

Wednesday, February 1, 2006

Wednesday 1st

Limited time to make a sizeable dent on the remaining tasks, so I kicked off by adding the Save Preferences option to the file menu, which gives the user the option to save their Preferences whenever the program is exited.

The rest of today's session involved sourcing some algorithms and example code for my circle drawing routine, which has never really worked as it should. Luckily, I managed to find some ellipse and circle code in the Blitz Code Archives (definitely the first place to look for specific code and routines).

Rounded off the day's session by adding the Menu commands to the program documentation file (by far the most long-winded of the documentation tasks). With any luck, by adding to the documentation whenever I get chance, hopefully the docs will be finished by the time the Editor hits Beta. Fingers crossed. :)