Last change
on this file since 6027 was
5011,
checked in by bensch, 19 years ago
|
orxonox/trunk: colors work, as they are expected too
|
File size:
524 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file color.h |
---|
3 | * @brief Definition of color-calculations |
---|
4 | * |
---|
5 | * code borrowed from: |
---|
6 | * http://www.easyrgb.com/math.php |
---|
7 | */ |
---|
8 | |
---|
9 | #ifndef _COLOR_H |
---|
10 | #define _COLOR_H |
---|
11 | |
---|
12 | //#include "vector.h" |
---|
13 | class Vector; |
---|
14 | |
---|
15 | //! a very abstract Class that helps transforming Colors into different Systems |
---|
16 | class Color |
---|
17 | { |
---|
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); |
---|
24 | }; |
---|
25 | |
---|
26 | #endif /* _COLOR_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.