summaryrefslogtreecommitdiff
path: root/include/mbgl/util/color.hpp
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2018-03-30 03:21:44 -0700
committerMinh Nguyễn <mxn@1ec5.org>2018-03-30 03:21:44 -0700
commitda95eca6356ec90260d7ac4205a06d04f9959c3d (patch)
treedfc665e8ad7dd468ed00158ad7729a77a39fd652 /include/mbgl/util/color.hpp
parente29f8c15e8f34c8663311c3a5684f1698c8df4bb (diff)
downloadqtlocation-mapboxgl-da95eca6356ec90260d7ac4205a06d04f9959c3d.tar.gz
[core] Fixed to-rgba with zero opacityupstream/1ec5-interpolate-linear-11562-boba
Diffstat (limited to 'include/mbgl/util/color.hpp')
-rw-r--r--include/mbgl/util/color.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/util/color.hpp b/include/mbgl/util/color.hpp
index 300d7fae82..01a4c8f292 100644
--- a/include/mbgl/util/color.hpp
+++ b/include/mbgl/util/color.hpp
@@ -4,6 +4,7 @@
#include <cassert>
#include <string>
+#include <array>
namespace mbgl {
@@ -37,6 +38,7 @@ public:
static optional<Color> parse(const std::string&);
std::string stringify() const;
+ std::array<double, 4> toArray() const;
};
inline bool operator==(const Color& colorA, const Color& colorB) {