paloKeleloSeelo
→ noiseDetail()Sets how many layers the flow is built from, and how much each one adds.
paloKeleloSeelo(maemo, phokotso)paloKelelo is not built from a single line — it is built from several layers stacked together. The big layer makes the large hills; the small ones above it add the fine bumps.
paloKeleloSeelo controls both:
- maemo — how many layers are combined. Defaults to 4. A small number (1 or 2) gives a smooth landscape; a large one gives a rough landscape.
- phokotso — how much each following layer adds. Defaults to 0.5, meaning each layer adds half of the one before it. Values above 0.5 can push the result past 1.
Call it before you start calling paloKelelo.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
maemo | palo | How many layers are combined. Defaults to 4. |
phokotso (optional) | palo | How much each following layer adds. Defaults to 0.5. |
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 400);
bokamorago(215, 230, 242);
tlogelaMothalo();
// Kwa godimo: maemo a le mannye — boreledi
paloKeleloPeo(8);
paloKeleloSeelo(1);
tlatsaMmala(90, 140, 190);
gopheta (diri x = 0; x < 400; x = x + 1) {
diri godimo = lekanyetsa(paloKelelo(x * 0.01), 0, 1, 30, 150);
thalaKhutlonne(x, godimo, 1, 180 - godimo);
}
// Kwa tlase: maemo a le mantsi — makgwakgwa
paloKeleloPeo(8);
paloKeleloSeelo(6);
tlatsaMmala(70, 110, 90);
gopheta (diri x = 0; x < 400; x = x + 1) {
diri godimo = lekanyetsa(paloKelelo(x * 0.01), 0, 1, 240, 350);
thalaKhutlonne(x, godimo, 1, 400 - godimo);
}
}