📜  如何在java代码示例中绘制三角形

📅  最后修改于: 2022-03-11 14:52:18.149000             🧑  作者: Mango

代码示例1
graphics.drawPolygon(new int[] {10, 20, 30}, new int[] {100, 20, 100}, 3);
// Graphics.drawPolygon(x-coordinates, y-coordinates, # of points);