HARD_LIGHT
→ HARD_LIGHT`OVERLAY` turned round — the new colour is the one that decides.
HARD_LIGHTHARD_LIGHT combines ATISA and SCREEN exactly as OVERLAY does, but what decides is the new colour you are drawing with, not the one already on the canvas. Where the new colour is dark, that part is darkened; where it is light, it is lightened.
Measured: (100, 150, 200) over (200, 100, 50) gives (157, 127, 166) — compare (188, 118, 79), which OVERLAY gives from the same numbers.
The name stays English, and it stays alongside SOFT_LIGHT: neither hard light nor soft light appears in any Setswana source consulted, and translating only one of the pair would split a family.
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 200);
bokamorago(150, 150, 150);
tlogelaMothalo();
seeloSaMotswako(HARD_LIGHT);
tlatsaMmala(40, 40, 40);
thalaKhutlonne(40, 40, 150, 120);
tlatsaMmala(220, 220, 220);
thalaKhutlonne(210, 40, 150, 120);
seeloSaMotswako(MOTSWAKO);
tlhalosa('Dikhutlonne tse pedi mo bokamoragong jwa boputswa: e e ntsho e lefifatsa karolo ya yona, e e sesweu e e bonesa.');
}