Last change
on this file since 5011 was
5011,
checked in by bensch, 19 years ago
|
orxonox/trunk: colors work, as they are expected too
|
File size:
524 bytes
|
Rev | Line | |
---|
[4838] | 1 | /*! |
---|
[5009] | 2 | * @file color.h |
---|
| 3 | * @brief Definition of color-calculations |
---|
| 4 | * |
---|
| 5 | * code borrowed from: |
---|
| 6 | * http://www.easyrgb.com/math.php |
---|
[3245] | 7 | */ |
---|
[1853] | 8 | |
---|
[5009] | 9 | #ifndef _COLOR_H |
---|
| 10 | #define _COLOR_H |
---|
[1853] | 11 | |
---|
[5009] | 12 | //#include "vector.h" |
---|
| 13 | class Vector; |
---|
[1853] | 14 | |
---|
[5011] | 15 | //! a very abstract Class that helps transforming Colors into different Systems |
---|
[5009] | 16 | class Color |
---|
| 17 | { |
---|
[5010] | 18 | public: |
---|
| 19 | static Vector RGBtoHSV (const Vector& RGB); |
---|
| 20 | static Vector HSVtoRGB (const Vector& HSV); |
---|
| 21 | |
---|
| 22 | static float minrgb(float r, float g, float b); |
---|
| 23 | static float maxrgb(float r, float g, float b); |
---|
[1853] | 24 | }; |
---|
| 25 | |
---|
[5009] | 26 | #endif /* _COLOR_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.