3 colour gradient

Hi guys,
I’m having fun with gradients setting up the 2 colours and watching how one of them gradually interpolates to the other. I’m really having a great time.
But something came up to my mind this morning: What if I could have 3 colours instead of 2? I haven’t found any info in the documentation and I’m really sad that maybe this isn’t possible. My fun may be over.
Can somebody help?

Yep, you can add as many colours as you like!
https://www.juce.com/doc/classColourGradient#ab220584b1725993c9a7eee42739f8353

3 Likes

Fun never ends with JUCE, I knew it! :slight_smile:

1 Like