Death by Triangle

This project involves the drawing of triangles with interpolated colors. The applet used to display these triangles is a testing applet; click on each applet to change views from the expected result to my result, and click on it again to display the difference image. The basis for the program is a edge-walking triangle scan-converter, and although I originally used linear algebra to interpolate the colors I eventually switched to using linear interpolation along the borders, which I'm reasonably satisfied with.

Unfortunately, despite many hours of glaring at the code, I'm not sure where exactly all the rounding errors are, so although the images look reasonably similar there are still noticeable errors. Still, not a complete disaster, I hope.

 

I've copied the source for this project to this directory.

Go back to my 6.837 page.