summaryrefslogtreecommitdiff
path: root/plugingui/colour.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/colour.cc')
-rw-r--r--plugingui/colour.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugingui/colour.cc b/plugingui/colour.cc
index d8cd8e9..dff1a82 100644
--- a/plugingui/colour.cc
+++ b/plugingui/colour.cc
@@ -54,6 +54,10 @@ Colour::Colour(float r, float g, float b, float a)
data[3] = a;
}
+Colour::Colour(std::uint8_t r, std::uint8_t g, std::uint8_t b, std::uint8_t a)
+ : Colour(r / 255.0f, g / 255.0f, b / 255.0f, a / 255.0f)
+{}
+
Colour::Colour(Colour&& other)
{
if(data)