Play 'round
|
00001 #ifndef __COLOR_H 00002 #define __COLOR_H 00003 00007 class Color 00008 { 00009 public: 00010 Color() {} 00011 Color(float r, float g, float b) : r(r), g(g), b(b), a(1) {} 00012 Color(float r, float g, float b, float a) : r(r), g(g), b(b), a(a) {} 00013 float r, g, b, a; 00014 virtual Color operator+(Color color); 00015 virtual Color operator-(Color color); 00016 virtual Color operator*(float num); 00017 virtual Color operator/(float num); 00021 static Color generateRandomColor(); 00022 }; 00023 00024 #endif