Skip to content
ExamplesOpen editor ↗

ntshwafatsaDiphikisele

→ updatePixels()

Writes the `diphikisele` list back onto the canvas so the changes show.

ntshwafatsaDiphikisele()

balaDiphikisele reads, ntshwafatsaDiphikisele writes. Without it your changes stay in the list and the canvas is unchanged.

The same is true of tlatsaPhikisele: measured in 2.3.2, after tlatsaPhikisele(5, 5, bopaMmala(0, 0, 255)), mmalaWaPhikisele(5, 5) still returns the old colour — until ntshwafatsaDiphikisele is called.

The word ntshwafatsa is the one Setswana uses for update.

Without it, nothing happens
tiro setaLoeto() {
  thalaKanefase(200, 120);
  bokamorago(245);

  tlatsaMmala(230, 57, 70);
  thalaKhutlonne(20, 20, 70, 70);

  tlatsaPhikisele(40, 40, bopaMmala(0, 0, 255));
  ntshwafatsaDiphikisele();

  bogoloJwaMokwalo(13);
  tlatsaMmala(40);
  thalaMokwalo('ntlha e le nngwe', 100, 60);
  thalaMokwalo('e fetotswe', 100, 78);

  tlhalosa('Sekwere se sekhibidu se se nang le ntlha e le nngwe fela e talatala mo go sona.');
}

balaDiphikisele, diphikisele, tlatsaPhikisele