[comp.sys.mac.programmer] How to get 256 grey levels using Palette Manager

jinli@gpu.utcs.utoronto.ca (Jin Tonic Li) (06/05/90)

I am trying to write a simple drawing program which uses 256 grey levels for
"color".  The drawing portion(using off-screen pixMap and Copybit to a color
window port) is fine.  However, I cannot get the grey scale to work.  I tried
to modified the color window's palette using PaletteMgr's SetEntryColor.  All
I get is one grey level after using pmForeColor(x), where x ranges 0 - 255.

I program in THINK Pascal.  I would appreciate if somebody could tell me how
to do it or send me a working sample(in C or Pascal would be fine).

Thank you in advance.

-- 
  		    Jin Li		      >>    Gin & Tonic mix well
   University of Toronto Computing Services  <<
jinli@gpu.utcs.utoronto.ca   uunet!utgpu!jinli>>      No bugs, no bucks