Re: fillPolygon code from Graphics Programming Software Development by mKorbel …setColor(color); g.translate(x, y); if (selected) { g.fillPolygon(poly1); } else { g.drawPolygon(poly2); } g.translate(-x, …= {y + 10, y, y, y + 10}; g.fillPolygon(t_x, t_y, t_x.length); g.fillRect(x, y + 10… Re: fillPolygon code from Graphics Programming Software Development by JamesCherrill … OP was asking where to find the source code for fillPolygon. It's defined in Graphics, but its abstract. Graphics2D doesn… fillPolygon code from Graphics Programming Software Development by nataraja833 Hi , Can anyone point me to fillPolygon source code , In Graphics.java it is declared as abstract class . - Nataraja G Class inheritance and moving Polygons Programming Software Development by powerdink … //front wheel hub page.setColor(Color.RED); page.fillPolygon(xBrake, yBrake, xBrake.length); //Brake light page.setColor…(Color.WHITE); page.fillPolygon(xLight, yLight, xLight.length); //Headlight page.setColor(Color… Re: Class inheritance and moving Polygons Programming Software Development by powerdink … //front wheel hub page.setColor(Color.RED); page.fillPolygon(xBrake, yBrake, xBrake.length); //Brake light page.setColor…(Color.WHITE); page.fillPolygon(xLight, yLight, xLight.length); //Headlight page.setColor(Color… Re: Class inheritance and moving Polygons Programming Software Development by powerdink …: int" That's if I change my [code]page.fillPolygon(xCar, yCar, xCar.length);[/code] to [code]page… Java Game Characteristics Programming Software Development by LSPUWILLC …) endCounter / (double) END_COUNT)); else offGraphics.setColor(snakeColor); offGraphics.fillPolygon(p); offGraphics.drawPolygon(p); offGraphics.drawLine(p.xpoints[p.npoints…), i * GRID_SIZE, j * GRID_SIZE); offGraphics.setColor(keyColor); offGraphics.fillPolygon(p); offGraphics.setColor(bgColor); offGraphics.drawPolygon(p); offGraphics.drawLine(p… Java Game Characteristics Programming Software Development by LSPUWILLC …) endCounter / (double) END_COUNT)); else offGraphics.setColor(snakeColor); offGraphics.fillPolygon(p); offGraphics.drawPolygon(p); offGraphics.drawLine(p.xpoints[p.npoints…), i * GRID_SIZE, j * GRID_SIZE); offGraphics.setColor(keyColor); offGraphics.fillPolygon(p); offGraphics.setColor(bgColor); offGraphics.drawPolygon(p); offGraphics.drawLine(p… Help in making Simple Screen Saver Programming Software Development by angellove40 … g.setColor(c1); g.fillPolygon(x1,y1,n1) ;//First Mountain g.fillPolygon(x2,y2,n2) ;//2nd Mountain g.fillPolygon(x3,y3,n3) ;//3rd… Java 2D Artistic Help. Programming Software Development by tnimblett … x[] = {450,600,750}; int y[] = {406,350,406}; g.fillPolygon(x,y,3); } public void sidebuilding1 (Graphics g) { g.setColor… x[] = {954,752,752}; int y[] = {439,410,439}; g.fillPolygon(x,y,3); } public void sidebuilding2 (Graphics g) { g.setColor… Kaleiodescope(sample) code need help Programming Software Development by jjt …+(int)(a[j]*radius), gMidy+(int)(b[j]*radius)); g.fillPolygon(nextPoly); phi = (i+1)*sectorAngle + Math.PI/2.0; //Reflect…(0,0,d.width,d.height); g.setColor(lens); g.fillPolygon(outline); } public boolean mouseEnter(Event evt, int x, int y… java applets Programming Software Development by bettybarnes … x[] = {98,300,501}; int y[] = {250,130,250}; g.fillPolygon(x,y,3); } public void roof2 (Graphics g) { g.setColor… x[] = {499,499,700}; int y[] = {320,249,320}; g.fillPolygon(x,y,3); } public void windows (Graphics g) { g.setColor… Turning into road - Traffic simulator Programming Software Development by shakssage …pgon.translate(posX, posY); g.setColor(cColor); g.fillPolygon(pgon); g.setColor(Color.black); g.drawPolygon(pgon);…pgon2.translate(232, 365); g.setColor(cColor); g.fillPolygon(pgon2); g.setColor(Color.black); g.drawPolygon(pgon2); … Cracks showing between polygons Programming Software Development by cms271828 …. // RenderingHints.VALUE_STROKE_NORMALIZE); 53. 54. g2.setColor(Color.yellow); 55. g2.fillPolygon(new int[]{point1.x, point2.x, point4.x, point3.x…, point2.y, point4.y, point3.y}, 4); 57. 58. g2.fillPolygon(new int[]{point3.x, point4.x, point6.x, point5.x… Why won't my menu pop up with the rest of my code? Programming Software Development by fengapapitt …[] aPoints = {170,200,185}; int[] bPoints = {370,370,320}; g.fillPolygon(aPoints,bPoints, 3); g.setColor(Color.black); g.fillRect(135…[] xPoints = {700,800,750}; int[] yPoints = {400,400,350}; g.fillPolygon(xPoints, yPoints, 3); g.setColor(Color.black); g.fillRect(730… Need to animate Snake game Programming Software Development by yuyuttiu … appley - 15 * applez}; g.setColor (Color.red); g.fillPolygon (j, k, 6); for (int i = 0 ; …230 + 40 * y [i] - 15 * z [i] }; g.fillPolygon (m, n, 6); } } else { gameOver (g); } g1.… Control Properties Programming Software Development by Patrickfrog1 … g.FillRectangle(brs, New Rectangle(0, 0, 10, 15)) g.FillPolygon(brs, New Point() {New Point(0, 15), New Point(5… g.FillRectangle(brs, New Rectangle(0, 0, 10, 15)) g.FillPolygon(brs, New Point() {New Point(0, 15), New Point(5… Abstract class Programming Software Development by amir4g …50); poly.addPoint(700, 200); poly.addPoint(500, 200); g.fillPolygon(poly); } } class Octagon { public Octagon(Graphics g1) { numSides…500); poly.addPoint(150, 500); poly.addPoint(100, 450); g.fillPolygon(poly); } } class Circle { public Circle(Graphics g1) { … Re: Triangle class Programming Software Development by alteran … used the following x and y and put them in fillpolygon and drawpolygon parameters instead of the two static int variables…() + (getX()/3))}; // int[] y = {(getY()+getY()), getY(), (getY()+getY())}; g.fillPolygon(x, y, N_POINTS); g.drawPolygon(x, y, N_POINTS); DrawHouse code help... Programming Software Development by ZEEPLE …, 500 ); polygon2.addPoint( 10, 700 ); polygon2.addPoint( 10, 700 ); g2d.fillPolygon( polygon2 ); //house image BufferedImage buffImage = new BufferedImage( 10, 10, BufferedImage… DrawHouse Code Problem Programming Software Development by ZEEPLE …, 500 ); polygon2.addPoint( 10, 700 ); polygon2.addPoint( 10, 700 ); g2d.fillPolygon( polygon2 ); //house image BufferedImage buffImage = new BufferedImage( 10, 10, BufferedImage… Re: DrawHouse Code Problem Programming Software Development by ZEEPLE …, 500 ); polygon2.addPoint( 10, 700 ); polygon2.addPoint( 10, 700 ); g2d.fillPolygon( polygon2 ); //house image BufferedImage buffImage = new BufferedImage( 10, 10, BufferedImage… Java2D: stack overflow Programming Software Development by roshansimon … the polygon with a color. Unfortunately, I cannot use the fillpolygon() function, but have to make my own function. I have… Help with mastermind game Programming Software Development by l_03 …); bufg.draw3DRect(100,10+i*28,25,25,false); } bufg.fillPolygon(shadX,shadY,7); for (i=0;i<8;i… Sierpinski triangle program Programming Software Development by smoore …) { for(int i = 0; i < polyList.length; i++) { g.fillPolygon(polyList[i]); } } public static void main (String[] args) { // make the… GUI and inheritance Programming Software Development by asian_al … 7: g.setColor(Color.magenta); break; } if (filled == true) g.fillPolygon(x1, y1, 3); else g.drawPolygon(x1, y1, 3); } } [/CODE… graphics issue Programming Software Development by Geekitygeek … Draw(Graphics g) { SolidBrush b = new SolidBrush(this.Color); g.FillPolygon(b, _points); b.Dispose(); if (Highlight) { Pen p = new Pen… Simple Objects in GDI+: Placement Programming Software Development by papanyquiL …, myPoints); //points changed to not draw over original polygon g.FillPolygon(Brushes.Black, myPoints); //draw pie shape and fill pie shape… Re: Simple Objects in GDI+: Placement Programming Software Development by papanyquiL … + 72); Point[] myPoints2 = { pt1, pt2, pt3, pt4, pt5, pt6 }; g.FillPolygon(Brushes.Black, myPoints2); [/code] Cant Paint on JLabel Programming Software Development by gunjannigam …={start1Y-5,start1Y-5,start1Y,start1Y+5,start1Y+5}; g2d.fillPolygon(coordinateXs,coordinateYs,5); Stroke stroke = new BasicStroke(3); g2d.setStroke…