Fractional Offsets


We can use ceiling to find the leftmost pixel in span and floor to find the rightmost pixel.

The trick comes when interpolating color values. It is straightforward to interpolate along the edges, but you must be careful when offsetting from the edge to the pixel's center.

That's all that I'm going to give away on this subject. You'll need to work out the details for yourself in you Project #2.
Lecture 6   Slide 8   6.837 Fall '00