Skip to content
ExamplesOpen editor ↗

FETA

→ PROJECT

A value that makes the flat end run past the point by half the stroke weight.

FETA

You give it to ntlhaMothalo. The end is flat as in SEPHAPHATHI, but it runs past the point you gave — by half the stroke weight.

So a line with boketeMothalo(40) stretches 20 pixels beyond each of its ends. It is what you want when you draw a rectangle out of four lines and need the corners to fill in.

The name comes from feta — to go past.

An end that runs past the point
tiro setaLoeto() {
  thalaKanefase(400, 400);
  bokamorago(240);

  boketeMothalo(40);
  mothaloMmala(200, 130, 90);
  ntlhaMothalo(FETA);
  thalaMothalo(120, 200, 280, 200);

  // dintlha tse di neilweng ke tse di tshwanang le tsa sekao sa SEPHAPHATHI —
  // fela fano mothalo o a di feta
  boketeMothalo(1);
  mothaloMmala(60, 60, 70);
  thalaMothalo(120, 100, 120, 300);
  thalaMothalo(280, 100, 280, 300);
}

ntlhaMothalo, SEPHAPHATHI, KGOLOKWE