I’ve just uploaded a first draft of a new colour gradient designer class that might be useful to some people. This was mainly intended for TheVinn’s layer effects project but my hope is that it makes its way into the main JUCE tree as well. There is a simple demo which shows a simple way of designing a radial gradient. I didn’t bother to bundle the JUCE sources with it so you’ll just have to update the “Local JUCE Folder” path and re-save the Introjucer project for it re-fresh the locations.
The project is currently hosted on my GitHub here.
Its still a work in progress so any feedback is welcome, particularly feature requests and comments on expected behaviour. Here’s a quick list of things that would be helpful to know and some future features I’ll try to add:
- How should the colour selector be shown? On a marker right click or double click.
- How far should you have to drag markers off for them to be deleted?
- The ability to put markers back if you haven’t released the mouse when removing them.
- Overall opacity.
- Individual marker edit space for accurate positioning.