DIKHUTLO
→ CORNERSA value that says a shape is measured by two opposite corners.
DIKHUTLOWhere the other modes read a width and a height, DIKHUTLO reads the position of the opposite corner. thalaKhutlonne(50, 50, 350, 200) under DIKHUTLO draws from (50, 50) to (350, 200).
It is easier when you already know where the shape has to end — you do not have to work out the width yourself.
Do not use it with thalaSekwere. The mode is meant for thalaKhutlonne alone, but in truth the square still uses it and draws something that is not square. See the thalaSekwere page.
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 400);
bokamorago(236);
seeloSaKhutlonne(DIKHUTLO);
tlogelaMothalo();
// dipalo tse pedi tsa bofelo ke lefelo, e seng bogolo
tlatsaMmala(210, 120, 110);
thalaKhutlonne(40, 40, 200, 200);
tlatsaMmala(110, 180, 210);
thalaKhutlonne(200, 200, 360, 360);
tlatsaMmala(230, 200, 100);
thalaKhutlonne(200, 40, 360, 130);
}