1 //////////////////////////////////////////////////////////////////////////////////////////
3 // function definitions for an RGBA color class
4 // Downloaded from: www.paulsprojects.net
5 // Created: 20th July 2002
6 // Modified: 7th November 2002 - Some speed improvements
7 // - Removed clamping after adds etc. Do it yourself!
8 // To enable use with floating point color buffers
9 // - Corrected lerp (reversed f and 1-f)
11 // Copyright (c) 2006, Paul Baker
12 // Distributed under the New BSD Licence. (See accompanying file License.txt or copy at
13 // http://www.paulsprojects.net/NewBSDLicense.txt)
14 //////////////////////////////////////////////////////////////////////////////////////////
18 void COLOR::ClampTo01()
41 COLOR
operator*(float scaleFactor
, const COLOR
& rhs
)
43 return rhs
*scaleFactor
;
46 bool COLOR::operator ==(const COLOR
& rhs
) const