tiro
Declares a named function.
Use tiro to declare a reusable block of code. Functions can take parameters and return values. The two p5.js lifecycle callbacks setaLoeto and tshwantsha are also declared with tiro.
Syntax
Section titled “Syntax”tiro leina(diparamethara) { ... }Examples
Section titled “Examples”tiro tlatsa(a, b) {
busa a + b;
}