[comp.sys.mac.programmer] Color/Gray lookup

peltz@cerl.uiuc.edu (Steve Peltz) (11/27/90)

I've got an application that does color drawing by simply using the default
color palette and doing RGBForeColor() and RGBBackColor().

I've noticed that if I set the display to plot in grays that the translation
from color to gray is not very useful. For example, setting only one of R, G,
or B will always map to black, even if the remaining one is set to 100%.

I thought it did color matching to gray by simply using the standard luminance
formula. Am I doing something wrong, or is this a known mis-feature, and what
can I do to overcome it short of using my own palettes and reverse color
lookup?
--
Steve Peltz
Internet: peltz@cerl.uiuc.edu	PLATO/NovaNET: peltz/s/cerl

peltz@cerl.uiuc.edu (Steve Peltz) (11/28/90)

In article <1990Nov27.150724.24164@ux1.cso.uiuc.edu> I asked about the
translation from colors to grays.

I've did some further investigation and noticed that it doesn't happen now
that I have 5M of RAM. The problem occurred when I had 2M of RAM. The system
is a Mac II with the 640x480x8 bit Apple video card, btw, running 6.0.7.
--
Steve Peltz
Internet: peltz@cerl.uiuc.edu	PLATO/NovaNET: peltz/s/cerl