seeloSaSediko
→ ellipseMode()Sets how the numbers given to `thalaSelee`, `thalaSediko` and `thalaArc` are read.
seeloSaSediko(mokgwa)By default the first two numbers are the centre of the ellipse, and the next two are its width and height. That is seeloSaSediko(BOGARE).
Three other modes:
SERIPAGARE— the first two are still the centre, but the next two are half the width and height.thalaSelee(200, 200, 40, 60)draws an ellipse 80 wide and 120 tall.SEKHUTLO— the first two are the top-left corner, followed by the width and height.DIKHUTLO— the first two are one corner, and the next two are the opposite corner.
Call seeloSaSediko() with nothing and it hands back the mode currently in force.
Pass a word it does not recognise and nothing happens at all. You are not told — the mode simply stays as it was. So use the capitalised names and nothing else.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
mokgwa | tlhomameng | BOGARE, SERIPAGARE, SEKHUTLO or DIKHUTLO. |
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 400);
bokamorago(244);
boketeMothalo(2);
// dipalo di tshwana mo mekgweng yotlhe e mene — se se fetogang ke tsela e di balwang ka yona
seeloSaSediko(BOGARE);
tlatsaMmala(230, 120, 120);
thalaSelee(100, 100, 80, 60);
seeloSaSediko(SERIPAGARE);
tlatsaMmala(120, 200, 130);
thalaSelee(300, 100, 80, 60);
seeloSaSediko(SEKHUTLO);
tlatsaMmala(120, 150, 230);
thalaSelee(60, 260, 80, 60);
seeloSaSediko(DIKHUTLO);
tlatsaMmala(220, 190, 90);
thalaSelee(260, 260, 340, 320);
}