Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Problem of color allocation in Xwindows' topicStudent Support Forum > General > "Problem of color allocation in Xwindows"

Help | Reply To Topic
Author Comment/Response
Jacques Girard
07/24/00 06:46am

I encounter the following problem:

I have writen a program that must have 5 blinking colors. The solution I use is to allocate private read/write colors in the default colormap and periodically to modify the RGB of the allocated pixel. This solution is OK except when I want to launch more than one or two instances of the program at the same time. The color allocation fails.

I would first like to know if the use of a private colormap for each instance would be a solution.

I would also like to know if there is a mean to share read/write colors so, one instance of the program would be in charge of the color modification for all the others.

Thank you for your reply

URL: ,
Help | Reply To Topic