MOTSWAKO
→ BLENDThe default mode: the new colour sits on top, and mixes with the one beneath where it is see-through.
MOTSWAKOMOTSWAKO is the mode every sketch starts in. The shape you draw sits on top of what was there.
But when your colour is see-through it really does mix — which is where the name comes from. Draw a half-transparent (100, 150, 200) over (200, 100, 50) and the pixel becomes (150, 125, 125): halfway between the two, channel by channel. When the colour is solid there is no mixing — the new simply covers the old.
To return to this mode, call seeloSaMotswako(MOTSWAKO).
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 200);
bokamorago(200, 100, 50);
tlogelaMothalo();
seeloSaMotswako(MOTSWAKO);
// Mmala o o tletseng — o khurumetsa
tlatsaMmala(100, 150, 200);
thalaKhutlonne(40, 50, 140, 100);
// Mmala o le mongwe, mme o le sephatlo — o a tswakana
tlatsaMmala(100, 150, 200, 128);
thalaKhutlonne(220, 50, 140, 100);
tlhalosa('Dikhutlonne tse pedi mo bokamoragong jo bo serolwana: e e ka fa molemeng e tletse, e e ka fa mojeng e tswakane le bokamorago mme e le bosetlha.');
}