|
LMMS
|
Functions | |
| JUCE_API Colour | findColourForName (const String &colourName, Colour defaultColour) |
Contains a set of predefined named colours (mostly standard HTML colours)
@tags{Graphics}
Attempts to look up a string in the list of known colour names, and return the appropriate colour.
A non-case-sensitive search is made of the list of predefined colours, and if a match is found, that colour is returned. If no match is found, the colour passed in as the defaultColour parameter is returned.