60 ///Set the color components |
60 ///Set the color components |
61 void set(double r,double g,double b) { _r=r;_g=g;_b=b; }; |
61 void set(double r,double g,double b) { _r=r;_g=g;_b=b; }; |
62 }; |
62 }; |
63 |
63 |
64 /// White color constant |
64 /// White color constant |
65 extern const Color WHITE; |
65 extern const Color WHITE; |
66 /// Black color constant |
66 /// Black color constant |
67 extern const Color BLACK; |
67 extern const Color BLACK; |
68 /// Red color constant |
68 /// Red color constant |
69 extern const Color RED; |
69 extern const Color RED; |
70 /// Green color constant |
70 /// Green color constant |
128 colors.push_back(Color(0,1,0)); |
128 colors.push_back(Color(0,1,0)); |
129 colors.push_back(Color(0,0,1)); |
129 colors.push_back(Color(0,0,1)); |
130 colors.push_back(Color(1,1,0)); |
130 colors.push_back(Color(1,1,0)); |
131 colors.push_back(Color(1,0,1)); |
131 colors.push_back(Color(1,0,1)); |
132 colors.push_back(Color(0,1,1)); |
132 colors.push_back(Color(0,1,1)); |
133 |
133 |
134 colors.push_back(Color(.5,0,0)); |
134 colors.push_back(Color(.5,0,0)); |
135 colors.push_back(Color(0,.5,0)); |
135 colors.push_back(Color(0,.5,0)); |
136 colors.push_back(Color(0,0,.5)); |
136 colors.push_back(Color(0,0,.5)); |
137 colors.push_back(Color(.5,.5,0)); |
137 colors.push_back(Color(.5,.5,0)); |
138 colors.push_back(Color(.5,0,.5)); |
138 colors.push_back(Color(.5,0,.5)); |
139 colors.push_back(Color(0,.5,.5)); |
139 colors.push_back(Color(0,.5,.5)); |
140 |
140 |
141 colors.push_back(Color(.5,.5,.5)); |
141 colors.push_back(Color(.5,.5,.5)); |
142 colors.push_back(Color(1,.5,.5)); |
142 colors.push_back(Color(1,.5,.5)); |
143 colors.push_back(Color(.5,1,.5)); |
143 colors.push_back(Color(.5,1,.5)); |
144 colors.push_back(Color(.5,.5,1)); |
144 colors.push_back(Color(.5,.5,1)); |
145 colors.push_back(Color(1,1,.5)); |
145 colors.push_back(Color(1,1,.5)); |
146 colors.push_back(Color(1,.5,1)); |
146 colors.push_back(Color(1,.5,1)); |
147 colors.push_back(Color(.5,1,1)); |
147 colors.push_back(Color(.5,1,1)); |
148 |
148 |
149 colors.push_back(Color(1,.5,0)); |
149 colors.push_back(Color(1,.5,0)); |
150 colors.push_back(Color(.5,1,0)); |
150 colors.push_back(Color(.5,1,0)); |
151 colors.push_back(Color(1,0,.5)); |
151 colors.push_back(Color(1,0,.5)); |
152 colors.push_back(Color(0,1,.5)); |
152 colors.push_back(Color(0,1,.5)); |
153 colors.push_back(Color(0,.5,1)); |
153 colors.push_back(Color(0,.5,1)); |