Hello everyone, just joined this group,

Hello everyone, just joined this group, and I have to say that this community is simply amazing.

I’m working with the Fire2012 code and I was trying to make it so that I can have different color fires.

I have modified the HeatColor to swap the red and green values (to make green fire), and the red and blue values (to make blue fire), but was wondering if it’s possible to modify the code such that I can pass in a CRGB value and have it make fire with that color?

Any help would be appreciated!

Help is on the way. Stay tuned.

The short version is that you can use a (ta da!) custom Color Palette instead of HeatColor. I’ll try to post code tomorrow, since this is a great example use for color palettes.

Outstanding, looking forward to it. I did see the color palette code (and sample code) but I am still not sure how it would be used. I am intrigued to say the least!

Hi @Mark_Kriegsman , have you had time to look at this? No rush, just curious :slight_smile:

I tried playing around with the code some more, but couldn’t figure out how to make use of the palette code. I’m sure once I see the actual solution, I’ll feel like a dope.

Yep! I’ve got goodies for you this evening. Couple hours now. :slight_smile:

Thanks Mark, can’t wait! :slight_smile:

New example code uploaded; shows exactly how to make fire all different colors using color palettes, including rainbow-color-changing fire. https://plus.google.com/112916219338292742137/posts/dkBUj4ZtpsB
Try it out and see what you can do with it!