































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
































No antialiasing 2x Supersampled Downsampled to original size 1/42/41/ 1/42/
100% 0% 0% 75% 25% 0% 50% 50% 0%
Polygon Vertices Maxima / Minima Edge Pixels Scan Line Fill
void boundaryFill4(int x, int y, int fill, int boundary) { int curr; curr = getPixel(x, y); if ((current != boundary) && (current != fill)) { setColor(fill); setPixel(x, y); boundaryFill4(x+1, y, fill, boundary); boundaryFill4(x-1, y, fill, boundary); boundaryFill4(x, y+1, fill, boundary); boundaryFill4(x, y-1, fill, boundary); } } Seed Position Fill “Color” Edge “Color”