Renders filled polygons using fast pixel blitting and odd-parity polygon scanline filling.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
PolygonFillRender/PolygonFill.java

20 lines
346 B

package sig;
import javax.swing.JFrame;
public class PolygonFill {
public static void main(String[] args) {
Panel p = new Panel();
JFrame f = new JFrame("Polygon Fill Renderer");
p.init();
f.add(p);
f.setSize(1280,720);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setVisible(true);
int i=0;
p.render();
}
}