Skip to content

khutloTharo

Draws a triangle defined by its three corner points.

Provide the x and y of each of the three corners in order.

khutloTharo(x1, y1, x2, y2, x3, y3)
NameTypeDescription
x1paloFirst corner x.
y1paloFirst corner y.
x2paloSecond corner x.
y2paloSecond corner y.
x3paloThird corner x.
y3paloThird corner y.
A green triangle
tiro setaLoeto() {
  thalaKanefase(400, 400);
  sefofane(220);
  tlatsaMmala(0, 200, 0);
  khutloTharo(200, 50, 50, 350, 350, 350);
}

thalaKhutlonne, thalaSediko