diff options
Diffstat (limited to 'libdimension/color.c')
-rw-r--r-- | libdimension/color.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libdimension/color.c b/libdimension/color.c index 8201a8f..5220dfa 100644 --- a/libdimension/color.c +++ b/libdimension/color.c @@ -84,6 +84,12 @@ const dmnsn_color dmnsn_cyan = { .trans = 0.0 }; +bool +dmnsn_color_is_black(dmnsn_color color) +{ + return color.R == 0.0 && color.G == 0.0 && color.B == 0.0; +} + /* sRGB's `C' function */ static double dmnsn_sRGB_C(double Clinear) { /* |