呵呵,英雄联盟玩的还可以,不过书上说说可以啊,图片如下:
四个点(x1,y1,x2,y2,)代表连接两个点的一条直线,要晕了,求解释,矛盾
import acm.graphics.GLine; import acm.program.GraphicsProgram; public class Line extends GraphicsProgram { public void run(){ add((new GLine(30,60,120,60))); add(new GLine(30,90,120,90)); add(new GLine(60,30,60,120)); add(new GLine(90,30,90,120)); } }