Skip to content
ExamplesOpen editor ↗

seeloSaSetshwantsho

→ imageMode()

Chooses how the numbers given to `thalaSetshwantsho` are read.

seeloSaSetshwantsho(mode)

By default — SEKHUTLO — x and y are the top-left corner, and the two numbers after them are a width and a height.

  • SEKHUTLO — top-left corner, then width and height. This is the default.
  • BOGARE — x and y are the middle of the picture. Right when a picture follows the mouse.
  • DIKHUTLO — the four numbers are two corners: top-left, then bottom-right.

It is the same family as seeloSaSediko and seeloSaKhutlonne, and it uses the same constant names.

It stays set until you change it. Like seeloSaKhutlonne, it affects everything drawn after it, so set it back if you want the default again.

NameTypeDescription
seelokonoketsiSEKHUTLO, BOGARE or DIKHUTLO.
A picture that follows the mouse
diri naledi;

tiro setaLoeto() {
  thalaKanefase(400, 240);
  naledi = letela tlisaSetshwantsho('naledi.png');
  seeloSaSetshwantsho(BOGARE);
  tlhalosa('Naledi e e serolwana e e latelang letshwao la peba mo kanefaseng e bosetlha.');
}

tiro tshwantsha() {
  bokamorago(245);
  thalaSetshwantsho(naledi, pebaX, pebaY, 80, 80);
}

thalaSetshwantsho, seeloSaKhutlonne, seeloSaSediko, BOGARE