simololaPhatlha
→ beginContour()Begins a hole inside the shape you are building.
simololaPhatlha()Between simololaPopego and feleletsaPopego, call simololaPhatlha(), add the vertices of the hole, then finish with feleletsaPhatlha(). That part becomes a hole in the shape — like the counter in a letter, or a window in a house.
The hole’s vertices must wind the other way round. If the outer shape goes clockwise, the hole’s vertices must go anticlockwise. This is measured on real pixels: when both wind the same way there is no hole at all — the shape simply fills, without complaint. It can take a long time to spot.
The name comes from what happens, not from the English label. In English it is called a contour. Setswana has no word for it in any source consulted — but it does have a word for a hole.
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 260);
bokamorago(245);
tlogelaMothalo();
tlatsaMmala(40, 120, 200);
simololaPopego();
// Kwa ntle — ka tsela ya sedikwana sa nako
ntlhana(60, 40);
ntlhana(340, 40);
ntlhana(340, 220);
ntlhana(60, 220);
// Phatlha — ka fa go fapaaneng
simololaPhatlha();
ntlhana(140, 180);
ntlhana(260, 180);
ntlhana(260, 80);
ntlhana(140, 80);
feleletsaPhatlha(TSWALA);
feleletsaPopego(TSWALA);
tlhalosa('Khutlonne ya botala jwa loapi e e nang le phatlha e e khutlonne fa gare, e bokamorago jo bosweu bo bonalang ka mo go yona.');
}