How do I go about passing a palette into a function?
nblendPaletteTowardPalette is a good example of the type of function I want to write, and it looks like you use CRGBPalette& to get an input palette. However no matter what I do I just get the error: “variable or field ‘xxxx’ declared void”
Edit: better explanation from my comment below
I want a function such as:
void hsv2rgbPalette(CRGBPalette& rgb, CHSVPalette& hsv)
This seems to be the correct way to pass a palette to a function to read/edit it (based on how nBlendPaletteTowardsPalette works), but it only gives the error: “variable or field ‘hsv2rgbPalette’ declared void”. Thought it might be because I need a prototype in a header but that doesn’t work either.