diff options
author | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2016-11-10 23:06:00 +0200 |
---|---|---|
committer | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2016-12-17 11:14:53 +0200 |
commit | 23381a530bb4a9c8e8c3e883a7d588bf832cd277 (patch) | |
tree | d05a019bc06ad68c00f4d30cd1c18642b0e74782 /core/color.h | |
parent | 7d1230a266f4eab3262ebfcbf4a89148dfcb3c48 (diff) | |
download | redot-engine-23381a530bb4a9c8e8c3e883a7d588bf832cd277.tar.gz |
Add named colors to GDScript/Visual Script/core.
Names and values taken from https://en.wikipedia.org/wiki/X11_color_names
Diffstat (limited to 'core/color.h')
-rw-r--r-- | core/color.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/color.h b/core/color.h index 5b671d5f62..72157c4a2d 100644 --- a/core/color.h +++ b/core/color.h @@ -111,6 +111,7 @@ struct Color { static Color hex(uint32_t p_hex); static Color html(const String& p_color); static bool html_is_valid(const String& p_color); + static Color named(const String& p_name); String to_html(bool p_alpha=true) const; _FORCE_INLINE_ bool operator<(const Color& p_color) const; //used in set keys |