From c61bb864c026d26a393f2a09c82de9bbc5043c6f Mon Sep 17 00:00:00 2001 From: Christian C Date: Tue, 4 Mar 2025 19:10:07 -0800 Subject: Modularization --- include/lib/color.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 include/lib/color.h (limited to 'include/lib/color.h') diff --git a/include/lib/color.h b/include/lib/color.h new file mode 100644 index 0000000..b999510 --- /dev/null +++ b/include/lib/color.h @@ -0,0 +1,22 @@ +#ifndef INC_LIB_COLOR_H +#define INC_LIB_COLOR_H + +#include +#include +#include + +//----------------------------------------------- +// Color Equal to Background +// Background: zeros in RGB, alpha can be whatever +bool_t color_zero(uint8_t* color1, size_t channels); + +//----------------------------------------------- +// Color Equality +// Determine if two colors are identical +bool_t color_equal(uint8_t* color1, uint8_t* color2, size_t channels); + +//----------------------------------------------- +// Print out the `channels` length color vector +void print_color(uint8_t* color, size_t channels); + +#endif -- cgit v1.2.1