Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void paint(Graphics g){
- g.setColor(color);
- int xPoints[] = {x, x+50, x+100};
- int yPoints[] = {y, y-50,y};
- g.fillPolygon(xPoints, yPoints ,xPoints.length);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement