Hi quick question here that doesn’t seem to ba answered yet on the forum.
In order to let the user customise the look of a plug-in, I would like to hold a juce::Colour type inside a ValueTree object. So I need to make a var hold a Colour. Is there an easy way to do this ?
The solution I came up with is to store the colour as a string (ex : “0xff96bb7c”) and to create a new color every time it is needed. Even though it won’t really impact the speed of the plug-in in a noticeable way, I feel like this is highly inefficient. Another solution would be to implement a ReferenceCountedObject that only holds a colour, but this seems a “lot” of work for such a simple task.