summaryrefslogtreecommitdiff
path: root/include/blender/color.h
diff options
context:
space:
mode:
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