| 275 | |
| 276 | |
| 277 | static XColor DefColorX11( int k,int nb, bool hsv,bool grey,int nbcolors,float *colors) |
| 278 | { |
| 279 | XColor C; |
| 280 | float r,g,b; |
| 281 | extern void DefColor(float & r, float & g, float & b, |
| 282 | int k,int nb, bool hsv,bool grey,int nbcolors,float *colors); |
| 283 | DefColor(r,g,b, k,nb,hsv,grey,nbcolors,colors); |
| 284 | C.red=65535*r; |
| 285 | C.green=65535*g; |
| 286 | C.blue=65535*b; |
| 287 | C.flags = DoRed | DoGreen | DoBlue; |
| 288 | C.pixel=k; |
| 289 | // cout << " color : " << k << " " << C.red << " "<< C.green << " " << C.blue << " " << r << endl; |
| 290 | return C; |
| 291 | } |
| 292 | |
| 293 | void SetColorTable1(int nb,bool hsv,int nbcolors,float *colors) |
| 294 | { |
no test coverage detected