kopanoMothalo
→ strokeJoin()Sets the shape of the place where two line segments meet.
kopanoMothalo(mokgwa)When a thick line turns a corner, that corner has a shape, and it can be built three ways:
MOTSU— the two segments run on until they meet at a sharp point. This is the default in 2D drawing.SESOKAMISI— the sharp point is cut off, leaving a straight edge across it.KGOLOKWE— the corner is rounded off.
This shows only on shapes with corners and on thick lines — try boketeMothalo(20) first.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
mokgwa | tlhomameng | MOTSU, SESOKAMISI or KGOLOKWE. |
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 400);
bokamorago(240);
tlogelaGoTlatsa();
boketeMothalo(22);
mothaloMmala(60, 140, 190);
kopanoMothalo(MOTSU);
thalaKhutlotharo(70, 130, 130, 40, 190, 130);
kopanoMothalo(SESOKAMISI);
thalaKhutlotharo(70, 260, 130, 170, 190, 260);
kopanoMothalo(KGOLOKWE);
thalaKhutlotharo(230, 195, 290, 105, 350, 195);
}