diff --git a/bin/sig/Panel.class b/bin/sig/Panel.class index 14c9c42..901f196 100644 Binary files a/bin/sig/Panel.class and b/bin/sig/Panel.class differ diff --git a/src/sig/Panel.java b/src/sig/Panel.java index eb3c836..8f67cea 100644 --- a/src/sig/Panel.java +++ b/src/sig/Panel.java @@ -15,6 +15,7 @@ public class Panel extends JPanel implements Runnable { public int pixel[]; public int width=1280; public int height=720; + final int CIRCLE_PRECISION=32; private Thread thread; private Image imageBuffer; private MemoryImageSource mImageProducer; @@ -95,7 +96,7 @@ public class Panel extends JPanel implements Runnable { x_offset+=1; y_offset=50; - /*FillPolygon(p,Color.MAGENTA,new Point[] { + FillPolygon(p,Color.WHITE,50,50,new Point[] { new Point(135,2), new Point(166,96), new Point(265,97), @@ -106,17 +107,62 @@ public class Panel extends JPanel implements Runnable { new Point(84,156), new Point(4,97), new Point(103,96), - });*/ - FillPolygon(p,Color.BRIGHT_CYAN,new Point[] { + }); + FillPolygon(p,Color.BRIGHT_CYAN,x_offset,y_offset,new Point[] { new Point(28,29), new Point(78,103), new Point(120,31), new Point(123,221), new Point(30,218), }); + //FillRect(p,Color.BRIGHT_RED,200,200,600,64); + FillCircle(p,Color.BRIGHT_BLUE,150,150,100); + FillOval(p,Color.BRIGHT_GREEN,300,150,100,50); } - public void FillPolygon(int[] p,Color col,Point...points) { + public void FillRect(int[] p,Color col,double x,double y,double w,double h) { + for (int xx=0;xx edges_sorted = new ArrayList(); for (int i=0;i