Patent ID: 6791569
Filing Date: 2004-09-14
Classification: G06T

Abstract:
A computer implemented method for performing antialiasing for a computer generated line of varying width, comprising the steps of:specifying a first vertex, a second vertex, and a third vertex, wherein the first vertex and the second vertex are on the line of varying width, and the first vertex, the second vertex, and the third vertex define a polygon, each of the vertices having an associated color value; specifying a point corresponding to a pixel; computing three barycentric coordinates of the point corresponding to each of the vertices; mapping the three barycentric coordinates into two barycentric coordinates corresponding to the endpoints of the line; determining the minor axis distance from the point to the line; determining the product of at least one of the two barycentric coordinates and the associated color value of the corresponding vertex; interpolating a color value of the point responsive to the product; determining an alpha value based on the minor axis distance; and determining a color of the pixel based on the color value of the point and the alpha value.