int x1 = 0; int y1 = 50; int x2 = 50; int y2 = 0; int x3 = 100; int y3 = 50; triangle(x1,y2, x2, y2, x3,y3); //for(int i = 0; i < 4; i++) { // triangle(x1 * i, y2 * i, x2 * i, y2 * i, x3 * i, y3 * i); //}