seeloSaKonego
→ splineProperty()Sets or reads one property of the smooth curves being drawn.
seeloSaKonego(leina, boleng) | seeloSaKonego(leina)seeloSaKonego controls how thalaKonego and ntlhanaKonego draw. There are two properties:
'ends' — what happens at the end points. AKARETSA (the default) makes the curve pass through every point, ends included. PEELOTHOKO makes the first and last points steer only, without being drawn. Measured on pixels: under PEELOTHOKO the pixel at the first point is left as background.
'tightness' — how tight the curve is. 0 is the default. Larger numbers make a tauter curve.
⚠ The property name is an English string. You write seeloSaKonego('ends', PEELOTHOKO) — 'ends' and 'tightness' are not translated, because they are text inside your code rather than names Bopa knows. This is another place where the Setswana stops, like bopaBoalo’s methods.
⚠ It accepts a name it does not know, in silence. seeloSaKonego('banana', 7) does not throw — it simply stores a property that does nothing. Measured.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
leina | mokwalo | 'ends' or 'tightness' — untranslated names. |
boleng (optional) | sengwe | The new value. Leave it out and the current setting is returned. |
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 260);
bokamorago(245);
tlogelaGoTlatsa();
boketeMothalo(3);
// Ka fa godimo — konego e feta mo dintlheng tsotlhe
seeloSaKonego('ends', AKARETSA);
mothaloMmala(30, 120, 190);
simololaPopego();
ntlhanaKonego(40, 100);
ntlhanaKonego(140, 30);
ntlhanaKonego(260, 110);
ntlhanaKonego(360, 40);
feleletsaPopego();
// Ka fa tlase — ntlha ya ntlha le ya bofelo di supa tsela fela
seeloSaKonego('ends', PEELOTHOKO);
mothaloMmala(220, 70, 90);
simololaPopego();
ntlhanaKonego(40, 230);
ntlhanaKonego(140, 160);
ntlhanaKonego(260, 240);
ntlhanaKonego(360, 170);
feleletsaPopego();
seeloSaKonego('ends', AKARETSA);
tlhalosa('Dikonego tse pedi: e e ka fa godimo e botala jwa loapi e feta mo dintlheng tsotlhe tse nne, e e ka fa tlase e khibidu e tshotse fela karolo ya gare.');
}