![]() |
The Agent Tool
1.01
An Agent Based Graphic Sound Synthesis Environment
|
00001 #ifndef __RGBA_HPP__ 00002 #define __RGBA_HPP__ 00003 00004 00005 00006 00019 class RGBA 00020 { 00021 00022 public: 00023 00025 RGBA.new() 00027 RGBA.new(int r,int g,int b,int a); 00029 RGBA.new(int r,int g,int b); 00031 int r(); 00033 int g(); 00035 int b(); 00037 int a(); 00039 int mean(); 00040 00042 00044 RGBA operator + (int r); 00045 00047 00049 RGBA operator + (RGBA r); 00050 00051 00053 00055 RGBA operator - (int r); 00056 00058 00060 RGBA operator - (RGBA r); 00061 00063 00065 RGBA operator * (float r); 00066 00068 00070 RGBA operator * (RGBA r); 00071 00073 00075 RGBA operator * (float r); 00076 00078 00080 RGBA operator / (RGBA r); 00081 00082 00083 00084 00085 }; 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 #endif 00100