# Color lines for terrain/landscape generation

**URL:** <https://discourse.processing.org/t/color-lines-for-terrain-landscape-generation/39422>\
**Category:** Coding Questions\
**Created:** [October 25, 2022, 10:49am UTC](https://discourse.processing.org/t/color-lines-for-terrain-landscape-generation/39422 "2022-10-25T10:49:35Z")\
**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 25, 2022, 11:35am UTC](https://discourse.processing.org/t/color-lines-for-terrain-landscape-generation/39422/2 "2022-10-25T11:35:19Z")

</div>

Hello @crv74,

Try applying the stroke _before_ the inner loop; y is rows so you will be changing the color for each row.

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

Related topic:  
[https://discourse.processing.org/t/generative-terrain-customization/39396/2](https://discourse.processing.org/t/generative-terrain-customization/39396/2)

`:)`

---

_[View the full topic](https://discourse.processing.org/t/color-lines-for-terrain-landscape-generation/39422)._
