zwol: ((mad) science)
[personal profile] zwol

It is an unfortunate mathematical fact that you cannot draw a dotted line that is one pixel wide, an even number of pixels long, and has dots at either end. This being the case, which of the following possible alternatives to that unachievable ideal looks least bad? Including None of the above; I have a better idea which I will explain, of course.

You might want to magnify the image to see exactly what is going on; however, the aesthetics at this size are what matters.

ETA: I should have explained that both of the boxes in each row are generated by the same algorithm; the difference is that in the left column, the vertical sides are an odd number of pixels long, whereas in the right column, all four sides are an even number of pixels long.

Date: 2009-07-29 03:45 am (UTC)
From: [identity profile] zwol.livejournal.com
Could you clarify which you mean by "the case where there are two of them" versus "just one"? I don't think any of the boxes has just one artifact.

The right-hand box on row 2 is not missing its right-bottom dot, but I'm not sure I can explain why. Perhaps it would do to say that all of these variations come from adjusting the start and end points of the lines, except the first row, where we are drawing two lines per side?

Double white dot in the middle of the line is not an option because if you actually draw it, you discover that it either has to be slightly off-center or four pixels wide. I decided that was just too ugly.

April 2017

S M T W T F S
      1
2345678
9101112131415
16171819 202122
23242526272829
30      

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 4th, 2026 02:27 pm
Powered by Dreamwidth Studios