# How to insert colourMode()s into stroke and fill

**URL:** <https://discourse.processing.org/t/how-to-insert-colourmode-s-into-stroke-and-fill/6049>\
**Category:** Coding Questions\
**Created:** [November 28, 2018, 9:11pm UTC](https://discourse.processing.org/t/how-to-insert-colourmode-s-into-stroke-and-fill/6049 "2018-11-28T21:11:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [December 5, 2018, 5:43am UTC](https://discourse.processing.org/t/how-to-insert-colourmode-s-into-stroke-and-fill/6049/4 "2018-12-05T05:43:06Z")

</div>

Were you able to resolve this issue? There are a number of ways to approach this problem – including with vertex coloring in PShape, with a PShader, or with a image mask.

> **[Color Gradients in Processing (v 2.0)](https://behreajj.medium.com/color-gradients-in-processing-v-2-0-e5c0b87cdfd2)**
>
> This tutorial on color gradients is an overhaul of a prior version; hopefully it will prove more useful to creative coders who wish to work…

> [@How to do this kind of gradient on shapes](https://discourse.processing.org/t/how-to-do-this-kind-of-gradient-on-shapes/799):
>
> here are bunch of shapes floating here and there. so i need to apply this kind of a gradient on them. can anyone tell me how to do these kind of thing will be appreciated. Here is the SS: Many Thanks! blush -scoopz

> **[Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/21891/gradient-fill-pshape)**
>
> Processing is an electronic sketchbook, a language and a worldwide community. This is its forum.

---

_[View the full topic](https://discourse.processing.org/t/how-to-insert-colourmode-s-into-stroke-and-fill/6049)._
