ntlhanaKonego
→ splineVertex()Adds one point to a smooth curve inside the shape you are building.
ntlhanaKonego(x, y)Between simololaPopego and feleletsaPopego, ntlhanaKonego(x, y) adds a point the smooth curve will pass through.
It is not fussy about how many calls you make. This is unlike ntlhanaBezier: you can call ntlhanaKonego many times or few, and the curve simply happens. Measured — 1, 2, 3, 4 and 5 all work.
feleletsaPopego(TSWALA) closes the curve smoothly — it comes back round to the start without making a corner.
What the end points do is controlled by seeloSaKonego('ends', ...).
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
x | palo | The x coordinate of the point. |
y | palo | The y coordinate of the point. |
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 300);
bokamorago(18, 22, 36);
tlogelaGoTlatsa();
boketeMothalo(2);
gopheta (diri k = 0; k < 6; k = k + 1) {
mothaloMmala(90 + k * 22, 190 - k * 10, 240);
simololaPopego();
gopheta (diri x = 0; x <= 400; x = x + 20) {
diri y = paloKelelo(x * 0.006, k * 3.7) * 260 + 20;
ntlhanaKonego(x, y);
}
feleletsaPopego();
}
tlhalosa('Mela e e boreledi e le thataro e e kgelogang go tswa ka fa molemeng go ya ka fa mojeng, mmala wa yona o fetoga go tswa mo botaleng jwa loapi go ya go bopinki.');
}See also
Section titled “See also”thalaKonego, simololaPopego, seeloSaKonego, ntlhana, paloKelelo