Skip to content
ExamplesOpen editor ↗

TLHAKORENNE_LEBANTA

→ QUAD_STRIP

A shape kind whose quadrilaterals are chained edge to edge, like a belt.

TLHAKORENNE_LEBANTA

Under TLHAKORENNE_LEBANTA, you give the vertices in pairs — one above, one below — and a quadrilateral is built between each two pairs. So four vertices give one quadrilateral, and six give two.

It is an easy way to draw a band whose width changes along its length.

It is not fussy about the count — with fewer than four vertices nothing is drawn.

A band whose width changes
tiro setaLoeto() {
  thalaKanefase(400, 240);
  bokamorago(245);
  tlogelaMothalo();
  seeloSaSekhutlo(DEGREES);

  simololaPopego(TLHAKORENNE_LEBANTA);
  gopheta (diri i = 0; i <= 20; i = i + 1) {
    diri x = i * 20;
    diri w = 10 + sin(i * 18) * 40 + 40;
    tlatsaMmala(lekanyetsa(i, 0, 20, 40, 220), 120, 200);
    ntlhana(x, 120 - w / 2);
    ntlhana(x, 120 + w / 2);
  }
  feleletsaPopego();

  tlhalosa('Lebanta le le tsamayang go tswa ka fa molemeng go ya ka fa mojeng, bophara jwa lona bo gola bo bo bo fokotsega, mme mmala wa lona o fetoga go tswa mo botaleng jwa loapi go ya go bopinki.');
}

simololaPopego, DITLHAKORENNE, KHUTLOTHARO_LEBANTA