Generative terrain customization

Hi @fijthecreator,

This will change the stroke color as step increments:

`stroke(step*255/78.0); // step 0 to 78 becomes 0 to 255 ( for color)’

There is also the map() function to re-map a number from one range to another:
https://processing.org/reference/map_.html

Scrutinize the above carefully and understand what it is doing and where it may be useful.

A search in the forum for terrain will yield many results.

I encourage you to do some exploration of the Processing resources and experimenting with the code.

Resources here:
https://processing.org/

Make use of println() statements to see what the variables are doing in your code and consider what to do to change them in a loop or over time.

:)

2 Likes