An even better method is to color each pixel according to area of the corresponding square which is covered by the rectangle but weighted according to distance from the center of the pixel.
A particular wighting function is used by the
Andreas Kriegl 2003-07-23