diphikisele
→ pixelsThe list of every dot on the canvas, four numbers for each dot.
diphikiseleIt is not a function — it is a list, so you do not call it with brackets. It is filled only after balaDiphikisele, and written back only after ntshwafatsaDiphikisele.
The dot at (x, y) starts in the list at 4 × (y × width + x), and the four numbers after it are red, green, blue and transparency.
It is a Uint8ClampedArray, not an ordinary list — measured. That means every number is a whole number between 0 and 255: writing 300 gives 255, and writing −20 gives 0. You do not have to clamp them yourself.
Pixel density changes it. On a machine with a sharp screen the canvas can hold four dots in the space of one, and the list is correspondingly longer.
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(200, 100);
bokamorago(245);
balaDiphikisele();
tlatsaMmala(40);
bogoloJwaMokwalo(15);
rulaganyaMokwalo(BOGARE);
thalaMokwalo('dintlha: ' + balaLenaane(diphikisele), 100, 50);
tlhalosa('Palo ya dintlha tse di mo lenaneong, e kwadilwe mo bogareng jwa kanefase.');
}