aboutsummaryrefslogtreecommitdiff
path: root/include/lib/color.h
blob: 5e7128b99f87b7d277fe1abf67a46a7eb5b78c96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef INC_LIB_COLOR_H
#define INC_LIB_COLOR_H

#include <stdint.h>
#include <stddef.h>
#include <lib/bool.h>

// 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