Skip to content
ExamplesOpen editor ↗

TLOSA

→ REMOVE

A mode that draws holes — overlapping pixels become fully transparent.

TLOSA

Under TLOSA, the shape you draw fills nothing: it erases. Where it overlaps what was there, that pixel becomes completely empty.

Measured: a rectangle drawn under TLOSA gives pixels of (0, 0, 0, 0) — no colour and no opacity at all. What lies outside the shape is untouched; what lies inside it disappears.

It is not phimola. phimola clears the whole canvas; TLOSA hands you a brush you can cut holes of any shape with.

Cutting holes out of a colour
tiro setaLoeto() {
  thalaKanefase(400, 220);
  bokamorago(255);
  tlogelaMothalo();

  tlatsaMmala(40, 120, 200);
  thalaKhutlonne(40, 30, 320, 160);

  seeloSaMotswako(TLOSA);
  gopheta (diri i = 0; i < 5; i = i + 1) {
    thalaSediko(80 + i * 60, 110, 54);
  }
  seeloSaMotswako(MOTSWAKO);

  tlhalosa('Khutlonne ya botala jwa loapi e e nang le didiko tse tlhano tse di remilweng mo go yona, mme bokamorago jo bosweu bo bonala ka mo diphatlheng.');
}

seeloSaMotswako, EMISETSA, phimola