Skip to content
ExamplesOpen editor ↗

thalaKhutlotharo

→ triangle()

Draws a triangle defined by its three corner points.

thalaKhutlotharo(x1, y1, x2, y2, x3, y3)

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

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);
  bokamorago(220);
  tlatsaMmala(0, 200, 0);
  thalaKhutlotharo(200, 50, 50, 350, 350, 350);
}

thalaKhutlonne, thalaSelee