seeloSaDiphikisele
→ pixelDensity()Sets or reads pixel density.
seeloSaDiphikisele([seelo])With no argument, returns the current density. A density of d uses d by d physical pixels for each logical canvas pixel, so the RGBA buffer has 4 × width × height × d² entries. Changing density resizes and clears the canvas. Set density before drawing; use 1 for algorithms that index one RGBA pixel per logical cell. Use dirisaMoGo to set or read an image or graphics buffer’s density; each has its own density.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
seelo (optional) | palo | Positive density; omit to read the current value. |
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(320, 220);
bokamorago(235);
seeloSaDiphikisele(1);
bokamorago(235);
balaDiphikisele();
diphikisele[0] = 255;
diphikisele[1] = 0;
diphikisele[2] = 0;
diphikisele[3] = 255;
ntshwafatsaDiphikisele();
bogoloJwaMokwalo(32);
thalaMokwalo(seeloSaDiphikisele(), 140, 120);
emisaPoapoeletso();
}