sekamisaX
→ shearX()Slants the drawing sideways, so shapes appear skewed.
sekamisaX(sekhutlo)By default the x- and y-axes are at right angles. sekamisaX moves points sideways according to how far down they are, leaving their vertical position alone. A rectangle becomes a leaning parallelogram.
The angle follows seeloSaSekhutlo, just as dikolosa does.
Do not use an angle near 90°. The slant is worked out with tan, and tan grows enormous as it nears 90 — your shape will stretch off the canvas.
Transformations accumulate, and are reset at the start of tshwantsha.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
sekhutlo | palo | How far to slant, in the unit seeloSaSekhutlo has set. |
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 400);
bokamorago(236);
seeloSaSekhutlo(DEGREES);
tlogelaMothalo();
// moriti pele: khutlonne e le nngwe e e sekamisitsweng
baya();
sutisa(150, 300);
sekamisaX(-38);
tlatsaMmala(200, 200, 205);
thalaKhutlonne(0, -140, 90, 140);
tsaya();
// ntlo e e emeng, mo lefelong le le lengwe
tlatsaMmala(110, 160, 210);
thalaKhutlonne(150, 160, 90, 140);
}