diff options
author | pacien | 2017-12-02 15:45:50 +0100 |
---|---|---|
committer | pacien | 2017-12-02 15:45:50 +0100 |
commit | 901f42ae84b73ea1baa0b20379021a9ab37250fc (patch) | |
tree | 73ea22a7da5f72c483436e55b38c04f4bda5afca /src/blender/color.c | |
parent | 52d6a488137736630d35ebddb6cc5b8c118b2e07 (diff) | |
download | morpher-901f42ae84b73ea1baa0b20379021a9ab37250fc.tar.gz |
Add color cmp. func.
Signed-off-by: pacien <pacien.trangirard@pacien.net>
Diffstat (limited to 'src/blender/color.c')
-rw-r--r-- | src/blender/color.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/blender/color.c b/src/blender/color.c new file mode 100644 index 0000000..f92fba9 --- /dev/null +++ b/src/blender/color.c | |||
@@ -0,0 +1,8 @@ | |||
1 | #include "blender/color.h" | ||
2 | |||
3 | bool color_equals(Color c1, Color c2) { | ||
4 | return c1.rgba.r == c2.rgba.r && | ||
5 | c1.rgba.g == c2.rgba.g && | ||
6 | c1.rgba.b == c2.rgba.b && | ||
7 | c1.rgba.a == c2.rgba.a; | ||
8 | } | ||