summaryrefslogtreecommitdiffstats
path: root/core/color.h
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2018-06-20 21:14:31 -0500
committerAaron Franke <arnfranke@yahoo.com>2018-07-25 15:34:24 -0500
commitde4b0968988f97a40ab50de51d5b7c5420409c85 (patch)
tree3898ab5715f6296989c643b8ae6229ce2daf2956 /core/color.h
parente3368d692d39d33c657cf985e46a45d43fc31546 (diff)
downloadredot-engine-de4b0968988f97a40ab50de51d5b7c5420409c85.tar.gz
[Core] 64-bit int Color methods
Diffstat (limited to 'core/color.h')
-rw-r--r--core/color.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/color.h b/core/color.h
index a2015a34d6..c0516e55fe 100644
--- a/core/color.h
+++ b/core/color.h
@@ -55,6 +55,9 @@ struct Color {
uint32_t to_rgba32() const;
uint32_t to_argb32() const;
uint32_t to_abgr32() const;
+ uint64_t to_rgba64() const;
+ uint64_t to_argb64() const;
+ uint64_t to_abgr64() const;
float gray() const;
float get_h() const;
float get_s() const;
@@ -186,6 +189,7 @@ struct Color {
}
static Color hex(uint32_t p_hex);
+ static Color hex64(uint64_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);