Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to draw a triangle in java

graphics.drawPolygon(new int[] {10, 20, 30}, new int[] {100, 20, 100}, 3);
// Graphics.drawPolygon(x-coordinates, y-coordinates, # of points);
 
PREVIOUS NEXT
Tagged: #draw #triangle #java
ADD COMMENT
Topic
Name
2+3 =