summaryrefslogtreecommitdiff
path: root/include/blender/color.h
diff options
context:
space:
mode:
authorpacien2017-12-02 15:45:50 +0100
committerpacien2017-12-02 15:45:50 +0100
commit901f42ae84b73ea1baa0b20379021a9ab37250fc (patch)
tree73ea22a7da5f72c483436e55b38c04f4bda5afca /include/blender/color.h
parent52d6a488137736630d35ebddb6cc5b8c118b2e07 (diff)
downloadmorpher-901f42ae84b73ea1baa0b20379021a9ab37250fc.tar.gz
Add color cmp. func.
Signed-off-by: pacien <pacien.trangirard@pacien.net>
Diffstat (limited to 'include/blender/color.h')
-rw-r--r--include/blender/color.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/blender/color.h b/include/blender/color.h
index 22ed563..1fef2cf 100644
--- a/include/blender/color.h
+++ b/include/blender/color.h
@@ -8,6 +8,9 @@
8 * A rainbow 8 * A rainbow
9 */ 9 */
10 10
11#include <MLV/MLV_color.h>
12#include <stdbool.h>
13
11/** 14/**
12 * Type: ColorComponent 15 * Type: ColorComponent
13 * Represents a single colour component of 32-bits RGBa tuple. 16 * Represents a single colour component of 32-bits RGBa tuple.
@@ -27,4 +30,17 @@ typedef union {
27 MLV_Color mlv; 30 MLV_Color mlv;
28} Color; 31} Color;
29 32
33/**
34 * Function: color_equals
35 * Compares the supplied colors.
36 *
37 * Parameters:
38 * c1 - the first color
39 * c2 - the second color
40 *
41 * Returns:
42 * T(c1 is the same color as c2)
43 */
44bool color_equals(Color c1, Color c2);
45
30#endif 46#endif