Changeset 9869 in orxonox.OLD for trunk/src/lib/util/color.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/color.cc
r8986 r9869 30 30 //! Black Color 31 31 const Color Color::black(0,0,0,1); 32 //! Orx Color 33 const Color Color::orx(.2, .5, .7, .8); //!< TODO Define the ORX-color :) 34 35 32 33 /** 34 * @brief slerps the Color in the HSV color space into the direction of c 35 * @param c the Color to slerp to 36 * @param v the Value to slerp 0 means stay at *this, 1 means at c. 37 */ 36 38 void Color::slerpHSV(const Color& c, float v) 37 39 { … … 52 54 } 53 55 56 /** 57 * @brief simple slerp wrapper. 58 * @param from from this color 59 * @param to to this one 60 * @param v how much 61 * @see void Color::slerpHSV(const Color& c, float v) 62 */ 54 63 Color Color::slerpHSVColor(const Color& from, const Color& to, float v) 55 64 { … … 59 68 } 60 69 61 70 /** 71 * @brief nice and simple debug output for the colors (colorless :) ) 72 */ 62 73 void Color::debug() const 63 74 { … … 214 225 215 226 216 // Needed by rgb2hsv() 227 /** 228 * @returns the maximum of r g and a. 229 * @param r Red. 230 * @param g Green 231 * @param b Blue 232 */ 217 233 float Color::maxrgb(float r, float g, float b) 218 234 { … … 227 243 } 228 244 229 230 // Needed by rgb2hsv() 245 /** 246 * @returns the minimum of r g and a. 247 * @param r Red. 248 * @param g Green 249 * @param b Blue 250 */ 231 251 float Color::minrgb(float r,float g,float b) 232 252 {
Note: See TracChangeset
for help on using the changeset viewer.