summaryrefslogtreecommitdiffstats
path: root/core/color.h
diff options
context:
space:
mode:
authortoger5 <toger5@hotmail.de>2017-08-30 20:30:12 +0200
committertoger5 <toger5@hotmail.de>2017-08-30 21:20:01 +0200
commit426c6b2c499055259f2542c180f996866dc26b17 (patch)
treeaaaef6cb555e91e174c2cee3db2415122b1389d8 /core/color.h
parentc8448cb0ac7ca6562e2fc539ee2f791ccd3547c6 (diff)
downloadredot-engine-426c6b2c499055259f2542c180f996866dc26b17.tar.gz
added to_ABGR32() to core/Color
Diffstat (limited to 'core/color.h')
-rw-r--r--core/color.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/color.h b/core/color.h
index 6df114f2f2..cd5510cf01 100644
--- a/core/color.h
+++ b/core/color.h
@@ -53,6 +53,7 @@ struct Color {
uint32_t to_32() const;
uint32_t to_ARGB32() const;
+ uint32_t to_ABGR32() const;
float gray() const;
float get_h() const;
float get_s() const;
@@ -148,8 +149,7 @@ struct Color {
b < 0.0031308 ? 12.92 * b : (1.0 + 0.055) * Math::pow(b, 1.0f / 2.4f) - 0.055, a);
}
- static Color
- hex(uint32_t p_hex);
+ 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);