JUCE
|
Contains a set of predefined named colours (mostly standard HTML colours) More...
Static Public Member Functions | |
static 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. More... | |
Contains a set of predefined named colours (mostly standard HTML colours)
|
static |
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.