[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Native PyGame method for automatically scaling inputs to a surface resolution?



Christopher Night wrote:

If you're going to say that lines are 1-dimensional and thus infinitely smaller than pixels, and thus we're obliged to draw a thin rectangle whenever we want a line, then (a) I probably would not use the tool if it doesn't even support drawing lines,

There's no reason line drawing shouldn't be supported.
A line of some specified width can easily be converted
automatically into a filled polygon, and there can be
a default for the width if it's not specified.

Postscript has a notion of a "hairline": if you set
the width to 0, it draws the narrowest line that the
device can produce, whatever scaling is in effect. For
a PyGame surface that would be 1 pixel.

--
Greg