[comp.sys.mac.programmer] Help with color stuff

mxmora@unix.SRI.COM (Matt Mora) (06/19/91)

[This post is regarding the new finder's colored progress thermometer]

I got the progress thermometer work in 256 color mode
but its doing strange things in other bit depths.

In B/W mode both gray and blue map to black so the thermometer is solid
black. Not the effect that I want.

In 4 color mode The gray is light gray and the blue maps to black. 
This is opposite of what I want.

I added a 'pltt' resource containing the two colors I want in the thermometer
and attached it to the window. But it doesn't seem to help.

I don't think I understand all this color stuff. Please help me out.

1. How do you detect what bit depth the screen is? 

2. Do you have to check for colorquickdraw first?

3. When do you use a clut and when do you use a palette?

4. Do I have to use a clut or a pltt if I only want two colors
   (besides black and white)

5. How do you know what a color is going to map to?

6. Do I have to special case non colorquickdraw machines or is there
   a way to this so it works on all macs.


Thanks in advance to whoever can help me out.

Matt



-- 
___________________________________________________________
Matthew Mora                |   my Mac  Matt_Mora@sri.com
SRI International           |  my unix  mxmora@unix.sri.com
___________________________________________________________