|
JUCE
|
Contains a set of predefined named colours (mostly standard HTML colours) More...
Functions | |
| JUCE_API Colour | findColourForName (const String &colourName, Colour defaultColour) |
| Attempts to look up a string in the list of known colour names, and return the appropriate colour. | |
Contains a set of predefined named colours (mostly standard HTML colours)
| JUCE_API Colour juce::Colours::findColourForName | ( | const String & | colourName, |
| Colour | defaultColour | ||
| ) |
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.