diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-11-07 15:23:46 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-11-07 15:23:46 -0500 |
commit | 35ba140e863bc516a2cda09df5ccd3782f2d3f3b (patch) | |
tree | 2c1a5a9a00816bd52ad2a7ebc2831b517ccf1b4d /libdimension/dimension/color.h | |
parent | 3e40d9c7b75dec008beb6b4ecf71b60e8bae088d (diff) | |
download | dimension-35ba140e863bc516a2cda09df5ccd3782f2d3f3b.tar.xz |
Get rid of dmnsn_color_is_black().
Diffstat (limited to 'libdimension/dimension/color.h')
-rw-r--r-- | libdimension/dimension/color.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libdimension/dimension/color.h b/libdimension/dimension/color.h index 9664d22..8470957 100644 --- a/libdimension/dimension/color.h +++ b/libdimension/dimension/color.h @@ -71,16 +71,6 @@ dmnsn_new_color5(double R, double G, double B, double trans, double filter) return ret; } -/** Is this color black? */ -DMNSN_INLINE bool -dmnsn_color_is_black(dmnsn_color color) -{ - return fabs(color.R) < dmnsn_epsilon - && fabs(color.G) < dmnsn_epsilon - && fabs(color.B) < dmnsn_epsilon - && fabs(color.trans) < dmnsn_epsilon; -} - /** Saturate the color components to [0.0, 1.0]. */ DMNSN_INLINE dmnsn_color dmnsn_color_saturate(dmnsn_color color) |