3 colour gradient


#1

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?


#2

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


#3

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