Tlola o ye mo diteng
DikaiBula setseleganyi ↗

thalaTlhakorenne

→ quad()

E thala popego ya matlhakore a mane go tswa mo dintlheng tse nne tse o di tlhophang.

thalaTlhakorenne(x1, y1, x2, y2, x3, y3, x4, y4)

Fa thalaKhutlonne le thalaSekwere di go naya dipopego tse di tlhomameng, thalaTlhakorenne e go naya dintlha tse nne — o di baya kwa o batlang gona. Ka jalo o ka thala khutlonne, sekwere, rhombus kgotsa trapezium, le popego epe fela e e nang le matlhakore a mane.

Naya x le y ya ntlha nngwe le nngwe ka tatelano, o dikologa popego — ka tsela ya tshupanako kgotsa kgatlhanong le yona. Fa o tlolatlola, matlhakore a tla kgabaganya mme popego e tla iphetoga bowtie.

seeloSaKhutlonne ga e dire sepe fa: dintlha ke dintlha, ga se bophara le boleele, ka jalo ga go na mokgwa o o ka fetolang tsela e di balwang ka yona.

LeinaMofutaTlhaloso
x1palox ya ntlha ya ntlha.
y1paloy ya ntlha ya ntlha.
x2palox ya ntlha ya bobedi.
y2paloy ya ntlha ya bobedi.
x3palox ya ntlha ya boraro.
y3paloy ya ntlha ya boraro.
x4palox ya ntlha ya bone.
y4paloy ya ntlha ya bone.
Trapezium
tiro setaLoeto() {
  thalaKanefase(400, 400);
  bokamorago(242);
  tlatsaMmala(230, 150, 90);
  boketeMothalo(3);
  thalaTlhakorenne(140, 120, 260, 120, 320, 280, 80, 280);
}
Tsela e e yang kgakala
tiro setaLoeto() {
  thalaKanefase(400, 400);
  bokamorago(140, 190, 240);
  tlogelaMothalo();

  // naga
  tlatsaMmala(120, 170, 90);
  thalaKhutlonne(0, 200, 400, 200);

  // tsela: e bophara kwa tlase, e tshesane kwa kgakala
  tlatsaMmala(70, 70, 78);
  thalaTlhakorenne(60, 400, 340, 400, 215, 200, 185, 200);

  // mela e mesweu e e mo bogareng
  tlatsaMmala(250);
  gopheta (diri i = 0; i < 6; i = i + 1) {
    metlha t = i / 6;
    metlha tGodimo = (i + 0.45) / 6;
    metlha yTlase = lekanyetsa(t, 0, 1, 400, 200);
    metlha yGodimo = lekanyetsa(tGodimo, 0, 1, 400, 200);
    metlha bTlase = lekanyetsa(t, 0, 1, 9, 1.2);
    metlha bGodimo = lekanyetsa(tGodimo, 0, 1, 9, 1.2);
    thalaTlhakorenne(200 - bTlase, yTlase, 200 + bTlase, yTlase, 200 + bGodimo, yGodimo, 200 - bGodimo, yGodimo);
  }
}

thalaKhutlonne, thalaSekwere, thalaKhutlotharo