# (Complex) Mesh gradients

**URL:** <https://discourse.processing.org/t/complex-mesh-gradients/23208>\
**Category:** Project Guidance\
**Created:** [August 12, 2020, 10:11am UTC](https://discourse.processing.org/t/complex-mesh-gradients/23208 "2020-08-12T10:11:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![micycle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micycle/32/201_2.png) [@micycle](https://discourse.processing.org/u/micycle)\
**Post date:** [August 12, 2020, 2:29pm UTC](https://discourse.processing.org/t/complex-mesh-gradients/23208/2 "2020-08-12T14:29:27Z")

</div>

You should be able to do these kind of gradients via diffusion curves:

> [@Understanding the Diffusion Curves Algorithm](https://discourse.processing.org/t/understanding-the-diffusion-curves-algorithm/21605/15):
>
> When using the pixel mask created for each layer (when downscaling) for the diffusion at each level in the upscale, original lines are preserved and the unwanted blobby effect seen previously disappears. \> \> However, whenever different-coloured lines meet (or are close), an artifact is introduced. Not sure why this is… [image] A better example: many lines crossing \> Becomes rather blocky… \> Played around with the diffusi…

Crude example – could probably do with a blur pass:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/bdfc9c4a76889a549430e96c0e6cc9d77b844d7b.png) \> ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/1b79a161c45d42c6f77bb38b5fb4a6c2469fa253.jpeg)

I can share code if it looks like a viable solution.

---

_[View the full topic](https://discourse.processing.org/t/complex-mesh-gradients/23208)._
