Skip to content
ExamplesOpen editor ↗

MOJA

→ RIGHT

A value that puts text to the right of the point you gave.

MOJA

You hand it to rulaganyaMokwalo. The point you give thalaMokwalo becomes where the text ends: the words finish there, having started to the left of it.

It is what you want when lining numbers up in a column — every number ends on the same line, which is what makes a column readable.

moja is the right hand, the right side — as in the written phrase rulaganya moja.

Numbers lined up on the right
tiro setaLoeto() {
  thalaKanefase(400, 220);
  bokamorago(240);
  tlogelaMothalo();
  tlatsaMmala(40, 50, 70);
  mofutatlhaka('monospace');
  bogoloJwaMokwalo(22);
  rulaganyaMokwalo(MOJA);

  mothaloMmala(220, 90, 90);
  thalaMothalo(300, 20, 300, 200);

  metlha dipalo = [7, 84, 1290, 36];
  gopheta (diri i = 0; i < 4; i = i + 1) {
    thalaMokwalo(dipalo[i], 300, 50 + i * 42);
  }

  tlhalosa('Dipalo tse nne tse di felelang mo mothalong o le mongwe o o emeng ka fa mojeng.');
}

rulaganyaMokwalo, MOLEMA, BOGARE