swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swarm-Support] problem setting color for agents


From: Rex Oleson
Subject: [Swarm-Support] problem setting color for agents
Date: Tue, 11 Feb 2003 16:44:42 GMT

I have 11 different types of agents that I would like to have distinguishable 
colors. I have tried setting the RGB values, but I don't know if the graphics 
setting won't handle this many colors or I'm missing something but I have

      [colorMap setColor: 0  ToRed: (double) 255.0 Green: (double) 255 Blue: 0  
 ];
      [colorMap setColor: 1  ToRed: (double) 200.0 Green: (double) 140 Blue: 0  
 ];
      [colorMap setColor: 2  ToRed: (double) 160.0 Green: (double) 80  Blue: 0  
 ];
      [colorMap setColor: 3  ToRed: (double) 160.0 Green: (double) 40  Blue: 
(double) 50.0  ];
      [colorMap setColor: 4  ToRed: (double) 200.0 Green: 0   Blue: 0   ];
      [colorMap setColor: 5  ToRed: (double) 255.0 Green: 0   Blue: 0   ];
      [colorMap setColor: 6  ToRed: (double) 255.0 Green: 0   Blue: (double) 
120.0 ];
      [colorMap setColor: 7  ToRed: (double) 255.0 Green: 0   Blue: (double) 
180.0 ];
      [colorMap setColor: 8  ToRed: (double) 255.0 Green: 0   Blue: (double) 
255.0 ];
      [colorMap setColor: 9  ToRed: (double) 160.0 Green: 0   Blue: (double) 
255.0 ];
      [colorMap setColor: 10 ToRed: 0   Green: 0   Blue: (double) 255.0 ];

for example but the colors are comming up very close to each other. almosst 
like I am only getting 256 colors. this happened in both my redhat 8.0 
enviroment and in my windows enviroment.

is there a setting that I'm missing or should I not go up to 255 for each of 
the colors?

Thank you,
Rex




________________________________________________________________
Sign Up for Juno Platinum Internet Access Today
Only $9.95 per month!
Visit www.juno.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]