You know, the problem with us Canadians is that sometimes, after a long day of moose hunting and dam repairing, we forget our way back to our cabins! Wouldn't it be great if our handy laptop (which, is always at our side), had some way to point us home? Well, it's been long told that, if you display a compass on your computer, it will be the brightest when pointed North. I'd like to test this out, but I need a compact program to take with me on my next trip, because my hard drive is already filled with maple syrup recipes (and those CANNOT go). So, your task is to design me a program which, when run, saves or displays an image of the following compass rose:
The letters may be in a different font. Remember, least is best, so lowest byte count wins!
- Light purple: #9999FF
- Gray: #E5E5E5
Lengths and Angles
c= 250 units
d= 200 units
e= 40 units
f= 45 units
- The text may be in any appropriate font, where appropriate denotes that it is readable to the average, educated human being.
- The text must be 3 units away from the spikes at its closest point, must not touch the rose, and must be upright
- If a line is drawn from the center of the rose, through the end point of the spike and beyond, it should cross through the center of the text with a precision of +/- 2 units (the text must be centered along an axis
aextends from the middle of the page, through the end of the spike, and beyond)
- Each character must be at least 15 units by 15 units, and have an x/y or y/x ratio of no more than 2:1 (no stretching – readability)
- The dim circle passing through the longer spikes and text closest to the middle on the reference image is not to be drawn.
- The image must be square, and at least 400px by 400px
- A compressed image within the source is disallowed
- A unit must be at least 1 pixel