Skip to content
ExamplesOpen editor ↗

LEFIFI

→ DARKEST

A mode that keeps whichever colour is darker, channel by channel.

LEFIFI

LEFIFI compares each channel of the two colours and keeps the lower one. It adds nothing — it only chooses.

Measured: (100, 150, 200) over (200, 100, 50) gives (100, 100, 50) — in each channel, the smaller number wins.

See also LESEDI, which does the opposite.

Rectangles keeping the darker colour
tiro setaLoeto() {
  thalaKanefase(400, 200);
  bokamorago(255);
  tlogelaMothalo();

  tlatsaMmala(200, 100, 50);
  thalaKhutlonne(60, 40, 180, 120);

  seeloSaMotswako(LEFIFI);
  tlatsaMmala(100, 150, 200);
  thalaKhutlonne(160, 40, 180, 120);
  seeloSaMotswako(MOTSWAKO);

  tlhalosa('Dikhutlonne tse pedi tse di kopanang; karolo e di kopanang mo go yona e lefifi go feta bobedi jwa tsona.');
}

seeloSaMotswako, LESEDI, ATISA