paloYaHeksa
Turns hex text back into an ordinary number.
This is the function that reverses heksa: paloYaHeksa("FF") is 255, and paloYaHeksa("80") is 128.
It is most useful when you have a colour written as #FF8000 and you want the numbers tlatsaMmala needs.
Given a list of strings, it returns a list of numbers.
Syntax
Section titled “Syntax”paloYaHeksa(boleng)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
boleng | mokwalo | Hex text, for example "FF". A list of strings is also accepted. |
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 400);
bokamorago(220);
tlogelaMothalo();
diri r = paloYaHeksa("FF");
diri g = paloYaHeksa("80");
diri b = paloYaHeksa("00");
kwala(r);
kwala(g);
tlatsaMmala(r, g, b);
kgolokwe(200, 200, 240);
}