Ejemplo: cómo dibujar un triángulo en java
graphics.drawPolygon(new int[] 10, 20, 30, new int[] 100, 20, 100, 3);
// Graphics.drawPolygon(x-coordinates, y-coordinates, # of points);
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)
graphics.drawPolygon(new int[] 10, 20, 30, new int[] 100, 20, 100, 3);
// Graphics.drawPolygon(x-coordinates, y-coordinates, # of points);