# Generative terrain customization

**URL:** <https://discourse.processing.org/t/generative-terrain-customization/39396>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [October 23, 2022, 11:18am UTC](https://discourse.processing.org/t/generative-terrain-customization/39396 "2022-10-23T11:18:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [October 23, 2022, 12:41pm UTC](https://discourse.processing.org/t/generative-terrain-customization/39396/2 "2022-10-23T12:41:59Z")

</div>

Hi @fijthecreator,

> [@fijthecreator](#):
>
> make the triangles stripes less visible/ less bold at the horizon of the terrain (the end of it)

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](https://processing.org/reference/map_.html)

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

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/e/b/ebc60cf0c27e41c00a4664b6b12e6f3424cfb3c2.png)

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/](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.

`:)`

---

_[View the full topic](https://discourse.processing.org/t/generative-terrain-customization/39396)._
