Skip to content
ExamplesOpen editor ↗

DIKHUTLOTHARO

→ TRIANGLES

A shape kind that takes the vertices three at a time, as separate triangles.

DIKHUTLOTHARO

Under simololaPopego(DIKHUTLOTHARO), the vertices are taken three at a time. Each triangle is closed and filled, and they are not joined to one another.

⚠ The number of vertices must divide by 3. If it does not, the sketch stops with an unreadable error. Measured.

KHUTLOTHARO_ANAMA and KHUTLOTHARO_LEBANTA connect the triangles instead of leaving them separate.

Mountains of triangles
tiro setaLoeto() {
  thalaKanefase(400, 240);
  bokamorago(210, 230, 245);
  tlogelaMothalo();

  simololaPopego(DIKHUTLOTHARO);
  gopheta (diri i = 0; i < 5; i = i + 1) {
    diri x = i * 80 + 40;
    tlatsaMmala(60 + i * 24, 120, 100);
    ntlhana(x - 50, 220);
    ntlhana(x, 220 - (i % 3) * 40 - 70);
    ntlhana(x + 50, 220);
  }
  feleletsaPopego();

  tlhalosa('Dikhutlotharo tse tlhano tse ditalatala tsa bogolo jo bo farologaneng, di eme mo moleng jaaka dithaba.');
}

simololaPopego, thalaKhutlotharo, KHUTLOTHARO_ANAMA, KHUTLOTHARO_LEBANTA