diff options
author | Christian C <cc@localhost> | 2025-03-22 22:27:40 -0700 |
---|---|---|
committer | Christian C <cc@localhost> | 2025-03-22 22:27:40 -0700 |
commit | 16422831ed49c573c1b8a43ba907bceb00fd5eea (patch) | |
tree | 1c2d86d5eecf6d1b7b4951f0b20f8c86e6939ac2 /lib/color.c | |
parent | 123464e36f2a151d820e08db7b4b426ca2b3657a (diff) |
Named Types
Diffstat (limited to 'lib/color.c')
-rw-r--r-- | lib/color.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/color.c b/lib/color.c index a0a50fd..172b627 100644 --- a/lib/color.c +++ b/lib/color.c @@ -4,7 +4,7 @@ // Color Equal to Background // Background: zeros in RGB, alpha can be whatever -bool_t color_zero(const uint8_t* color1, size_t channels) { +bool_t color_zero(const ImageData_t* color1, size_t channels) { for (size_t idx = 0; idx < channels; idx++) { if (idx == 3) { break; @@ -18,7 +18,7 @@ bool_t color_zero(const uint8_t* color1, size_t channels) { // Color Equality // Determine if two colors are identical -bool_t color_equal(const uint8_t* color1, const uint8_t* color2, size_t channels) { +bool_t color_equal(const ImageData_t* color1, const ImageData_t* color2, size_t channels) { for (size_t idx = 0; idx < channels; idx++) { if (color1[idx] != color2[idx]) { return FALSE; @@ -28,7 +28,7 @@ bool_t color_equal(const uint8_t* color1, const uint8_t* color2, size_t channels } // Print out the `channels` length color vector -void print_color(uint8_t* color, size_t channels) { +void print_color(ImageData_t* color, size_t channels) { for (size_t index = 0; index < channels; index++) { printf("%hhu ", color[index]); } |