Skip to content
ExamplesOpen editor ↗

METHALO

→ LINES

A shape kind that joins the vertices in pairs, as separate lines.

METHALO

Under simololaPopego(METHALO), the vertices are taken two at a time: the first and second make a line, the third and fourth make another, and those lines are not connected.

⚠ The number of vertices must divide by 2. If it does not, the sketch stops with an unreadable error — “Cannot read properties of undefined”. Measured.

METHALO is the plural of mothalo, the word Bopa uses in thalaMothalo and mothaloMmala.

Spokes from a centre
tiro setaLoeto() {
  thalaKanefase(400, 300);
  bokamorago(245);
  seeloSaSekhutlo(DEGREES);
  mothaloMmala(40, 90, 150);
  boketeMothalo(2);

  simololaPopego(METHALO);
  gopheta (diri a = 0; a < 360; a = a + 20) {
    ntlhana(200 + cos(a) * 50, 150 + sin(a) * 50);
    ntlhana(200 + cos(a) * 130, 150 + sin(a) * 130);
  }
  feleletsaPopego();

  tlhalosa('Mela e e botala jwa loapi e le 18 e e tswang mo sedikong sa fa gare go ya kwa ntle, jaaka marang a letsatsi.');
}

simololaPopego, thalaMothalo, DINTLHA, DIKHUTLOTHARO