paloKeleloPeo
→ noiseSeed()Sets the seed for `paloKelelo`, so the same flow comes back every time.
paloKeleloPeo(peo)Just as paloEpePeo fixes the sequence of paloEpe, paloKeleloPeo fixes the flow of paloKelelo.
Without a seed, the landscape you draw is different every time the sketch runs. With a seed, the same landscape returns every time — one you can teach from, compare against, and keep.
Each seed gives a different landscape. Changing the seed from 1 to 2 is the easy way to hunt for a shape you like.
Note: paloEpePeo and paloKeleloPeo are two separate things. Setting one does not touch the other.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
peo | palo | The number that fixes the flow. The same seed gives the same flow. |
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 400);
bokamorago(235);
tlogelaMothalo();
metlha dipeo = [1, 2, 3];
diri kwaGodimo = 0;
gopheta (metlha peo mo dipeo) {
paloKeleloPeo(peo);
tlatsaMmala(60 + peo * 55, 120, 170);
gopheta (diri x = 0; x < 400; x = x + 2) {
diri godimo = lekanyetsa(paloKelelo(x * 0.01), 0, 1, 20, 100);
thalaKhutlonne(x, kwaGodimo + godimo, 2, 6);
}
kwaGodimo = kwaGodimo + 130;
}
}