Skip to content
ExamplesOpen editor ↗

feleletsaPhatlha

→ endContour()

Finishes the hole you began with `simololaPhatlha`.

feleletsaPhatlha() | feleletsaPhatlha(TSWALA)

feleletsaPhatlha() stops adding vertices to the hole and returns you to the outer shape. If you want to add more vertices to the outer shape after the hole, you can.

By default the hole is left open, like a shape. Pass TSWALA — feleletsaPhatlha(TSWALA) — to join the hole’s first and last vertices. That is usually what you want, because an open hole does not read as a hole.

BULA is the default value, and this is measured: feleletsaPhatlha() and feleletsaPhatlha(BULA) do the same thing.

⚠ Calling it when you never began a hole does not throw — everything carries on as if you had not.

NameTypeDescription
mokgwa (optional)tlhomamengTSWALA to close the hole, or BULA to leave it open. The default is BULA.
Two holes in one shape
tiro setaLoeto() {
  thalaKanefase(400, 240);
  bokamorago(30, 34, 52);
  tlogelaMothalo();
  tlatsaMmala(250, 205, 70);

  simololaPopego();
  ntlhana(40, 30);
  ntlhana(360, 30);
  ntlhana(360, 210);
  ntlhana(40, 210);

  simololaPhatlha();
  ntlhana(90, 170);
  ntlhana(170, 170);
  ntlhana(170, 70);
  ntlhana(90, 70);
  feleletsaPhatlha(TSWALA);

  simololaPhatlha();
  ntlhana(230, 170);
  ntlhana(310, 170);
  ntlhana(310, 70);
  ntlhana(230, 70);
  feleletsaPhatlha(TSWALA);

  feleletsaPopego(TSWALA);

  tlhalosa('Khutlonne ya serolwana e e nang le diphatlha tse pedi tsa dikhutlonne, tse bokamorago jo bo lefifi bo bonalang ka mo go tsona.');
}

simololaPhatlha, feleletsaPopego, TSWALA, BULA