TLHAKANYA
→ ADDA mode that adds the two colours together, so the result is lighter.
TLHAKANYATLHAKANYA adds each channel of the new colour to the same channel of the one already there: red with red, green with green, blue with blue. Where the total goes over 255 it stops at 255 — there is no colour lighter than white.
Measured: (100, 150, 200) over (200, 100, 50) gives (255, 250, 250) — the red channel would have been 300, and was capped at 255.
TLHAKANYA is the school-arithmetic word: it is what the maths dictionary gives for add. It is not tlhakatlhakanya, which means to shuffle a list.
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 220);
bokamorago(10, 10, 20);
tlogelaMothalo();
seeloSaMotswako(TLHAKANYA);
tlatsaMmala(200, 40, 40);
thalaSediko(160, 110, 150);
tlatsaMmala(40, 200, 40);
thalaSediko(240, 110, 150);
tlatsaMmala(40, 40, 200);
thalaSediko(200, 60, 150);
seeloSaMotswako(MOTSWAKO);
tlhalosa('Didiko tse tharo tsa mmala mo bokamoragong jo bontsho; fa di kopana mmala o nna o bonesegile, mme fa tsotlhe tse tharo di kopana o nna o mosweu.');
}