[Adaptation Layer] Added rive-tizen adaptation layer class.
[platform/core/uifw/rive-tizen.git] / submodule / include / shapes / paint / color.hpp
1 #ifndef _RIVE_PAINT_COLOR_HPP_
2 #define _RIVE_PAINT_COLOR_HPP_
3 #include <cmath>
4
5 namespace rive
6 {
7         unsigned int colorARGB(int a, int r, int g, int b);
8
9         unsigned int colorRed(unsigned int value);
10
11         unsigned int colorGreen(unsigned int value);
12
13         unsigned int colorBlue(unsigned int value);
14
15         unsigned int colorAlpha(unsigned int value);
16
17         float colorOpacity(unsigned int value);
18
19         unsigned int colorWithAlpha(unsigned int value, unsigned int a);
20
21         unsigned int colorWithOpacity(unsigned int value, float opacity);
22
23         unsigned int colorModulateOpacity(unsigned int value, float opacity);
24
25         unsigned int colorLerp(unsigned int from, unsigned int to, float mix);
26 } // namespace rive
27 #endif