diff --git a/libs/openFrameworks/types/ofColor.cpp b/libs/openFrameworks/types/ofColor.cpp index 0d7c5a3333d..3bbb76b8961 100644 --- a/libs/openFrameworks/types/ofColor.cpp +++ b/libs/openFrameworks/types/ofColor.cpp @@ -170,7 +170,7 @@ A clampedMultiply(const A& a, const B& b) { } template -ofColor_::ofColor_(float _r, float _g, float _b, float _a): +ofColor_::ofColor_(PixelType _r, PixelType _g, PixelType _b, PixelType _a): r(_r), g(_g), b(_b), diff --git a/libs/openFrameworks/types/ofColor.h b/libs/openFrameworks/types/ofColor.h index 3b74f8c6c9a..8d9623a432c 100644 --- a/libs/openFrameworks/types/ofColor.h +++ b/libs/openFrameworks/types/ofColor.h @@ -35,7 +35,7 @@ class ofColor_{ /// \param green The green component. /// \param blue The blue component. /// \param alpha The alpha component. - ofColor_(float red, float green, float blue, float alpha = limit()); + ofColor_(PixelType red, PixelType green, PixelType blue, PixelType alpha = limit()); /// \brief Construct a grayscale ofColor_ by specifying a single number. ///