Skip to content
ExamplesOpen editor ↗

SUTA

→ MOVE

The cursor that says a thing can be dragged somewhere else.

SUTA

You hand it to khesara. It is the four-headed arrow that tells the reader something can be picked up and put somewhere else.

suta is to move aside — to leave where you are and go elsewhere. It shares a root with sutisa, the function that moves the drawing origin; the difference is that suta is moving yourself and sutisa is moving something else. That is why both names can exist: SUTA is the cursor and sutisa is the function.

A square that can be dragged
diri x = 170;
diri y = 70;

tiro setaLoeto() {
  thalaKanefase(400, 220);
  tlhalosa('Sekwere se se serolwana se se latelang peba fa se gogwa.');
}
tiro tshwantsha() {
  bokamorago(238);
  tlogelaMothalo();

  metlha mogodimo = pebaX > x && pebaX < x + 60 && pebaY > y && pebaY < y + 60;

  fa (mogodimo) {
    khesara(SUTA);
    tlatsaMmala(240, 190, 80);
  } gongwe {
    khesara(MOTSWI);
    tlatsaMmala(200, 200, 210);
  }

  fa (mogodimo && konopoETshwerwe) {
    x = pebaX - 30;
    y = pebaY - 30;
  }

  thalaSekwere(x, y, 60);
}

khesara, MOTSWI, SEATLA, sutisa