Tuesday, July 26, 2011

Good and Bad News

First the bad news. My PC is having problems, and I think I have narrowed it down to bad memory. I have submitted an RMA request from Patriot Memory, so hopefully I will not have to buy new memory. If I do, it will only cost around $57. As for the good news, I was able to create a drawing program in Visual Studio to create a map for a source book I plan on writing for Palladium Books.

Here is the code for the program:

        Dim blackPen As New Drawing.Pen(Color.Black, 3)
        e.Graphics.DrawEllipse(blackPen, 200, 50, 500, 500)
        e.Graphics.DrawEllipse(blackPen, 250, 100, 400, 400)
        e.Graphics.DrawEllipse(blackPen, 400, 250, 100, 100)
        e.Graphics.DrawLine(blackPen, 273, 123, 415, 265)   'Q1
        e.Graphics.DrawLine(blackPen, 485, 265, 627, 123)   'Q2
        e.Graphics.DrawLine(blackPen, 485, 335, 627, 477)   'Q3
        e.Graphics.DrawLine(blackPen, 415, 335, 273, 477)   'Q4
        e.Graphics.DrawLine(blackPen, 450, 350, 450, 500)   'South Sector Bisect
        e.Graphics.DrawLine(blackPen, 700, 300, 900, 300)   'CC1

And here is the final result:





It is the map of an island city with a highway coming in from the East. It consists of four sectors, with the South sector partially bisected.

On a semi-related note, I received my diploma in the mail today from Alfred State College. I will have to frame it to go with my other diploma.

No comments:

Post a Comment