A method, system, and computer-readable storage medium are disclosed for
performing anti-aliasing operations on lines using a graphics processing
unit (GPU). Input comprising a plurality of vertices may be received at a
GPU. The plurality of vertices may represent one or more line segments.
One or more anti-aliased line segments may be generated based on the
input. In generating the one or more anti-aliased line segments, the
intensity of a first edge and a second edge of each line segment may be
modified based on application of an anti-aliasing function. A maximum
intensity of a central portion may be maintained for at least one of the
line segments, wherein the central portion is between the two edges and
is greater than one pixel in thickness.