Scanline edge-flag algorithm for antialiasing