You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In wxWidgets, the `wxColourDatabase` class maintains a database of standard RGB colors for a predefined set of named colors. This includes traditional wxWidgets colors and CSS standard colors. You can use the `Find()` method to look up colors by name or `FindName()` to find the name of a color. Additionally, you can add custom colors to the database using `AddColour()`.
Some examples of predefined colors include:
- AQUAMARINE
- CORNFLOWER BLUE
- DARK SLATE GREY
- LIME GREEN
- MEDIUM TURQUOISE
- VIOLET RED
You can switch between traditional wxWidgets colors and CSS standard colors using the `UseScheme()` method. If you're looking for more details, you can explore the [[wxColourDatabase documentation](https://docs.wxwidgets.org/latest/classwx_colour_database.html)](https://docs.wxwidgets.org/latest/classwx_colour_database.html) or the [[wxColour class reference](https://docs.wxwidgets.org/latest/classwx_colour.html)](https://docs.wxwidgets.org/latest/classwx_colour.html). Let me know if you'd like help with specific color-related tasks!
This discussion was converted from issue #137 on April 27, 2025 16:00.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
wxWidgets rgb named colors extended copilot
https://docs.wxwidgets.org/latest/classwx_colour_database.html
wxColourDatabase Class Reference
Class List by Category » Graphics Device Interface (GDI)
Beta Was this translation helpful? Give feedback.
All reactions