naive scanline polyfill algorithm