openframeworks/openFrameworks — pull request #2237 by kylemcdonald (2013-07-13 23:05:55+00:00)
Title: Fix ofColor overflow/underflow

This fix replaces all arithmetic operations (add, subtract, multiply, divide) with functions that use floating point math internally and clamp the values to the color range before casting to the original type. This has been tested on ofShortColor, ofFloatColor and ofColor. Closes #1144.