Changeset 8141 in orxonox.OLD for branches/gui/src/lib/util
- Timestamp:
- Jun 4, 2006, 1:19:07 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/util/color.h
r7195 r8141 16 16 { 17 17 public: 18 Color(float r, float g, float b, float a) :_r(r), _g(g), _b(b), _a(a) {}; 19 Color(const Color& c) { _r = c._r; _g = c._g; _b = c._b; _a = c._a; }; 20 21 float r() const { return _r; } 22 float& r() { return _r; } 23 float g() const { return _g; } 24 float& g() { return _g; } 25 float b() const { return _b; } 26 float& b() { return _b; } 27 float a() const { return _a; } 28 float& a() { return _a; } 29 30 public: 18 31 static Vector RGBtoHSV (const Vector& RGB); 19 32 static void RGBtoHSV (const Vector& RGB, Vector& HSV); … … 24 37 static float minrgb(float r, float g, float b); 25 38 static float maxrgb(float r, float g, float b); 39 40 float _r; //!< Red Value. 41 float _g; //!< Green Value. 42 float _b; //!< Blue Value. 43 float _a; //!< Alpha Value. 44 26 45 }; 27 46
Note: See TracChangeset
for help on using the changeset viewer.