Skip to content
ExamplesOpen editor ↗

GO_SE_BONALE

→ OPAQUE

A `tlhotlha` value: remove all transparency, leaving solid colour.

tlhotlha(GO_SE_BONALE)

It sets every dot’s transparency to 255 — that is, nothing shows through from behind.

On an already-opaque canvas it does nothing at all — measured: not one of six sampled points changed. On a see-through canvas it does: [255, 0, 0, 128] becomes [255, 0, 0, 255] — measured.

It is the one effect that appears to do nothing when you try it on an ordinary canvas, without anything being wrong.

The name is a description rather than a translation. No Setswana word for opaque was found in any source searched, so the name says what the effect does: not see-through.

A see-through star becomes solid
tiro setaLoeto() {
  thalaKanefase(300, 160);
  phimola();

  diri naledi = letela tlisaSetshwantsho('naledi.png');
  setshwantshoMmala(255, 120);
  thalaSetshwantsho(naledi, 75, 5, 150, 150);
  tlhotlha(GO_SE_BONALE, maaka);

  tlhalosa('Naledi e e neng e bonala, jaanong e tletse mmala mme bokamorago bo bontsho.');
}

tlhotlha, setshwantshoMmala, phimola