Newsgroups: comp.sys.mac.programmer Path: utzoo!utgpu!jinli From: jinli@gpu.utcs.utoronto.ca (Jin Tonic Li) Subject: How to get 256 grey levels using Palette Manager Message-ID: <1990Jun5.030401.29051@gpu.utcs.utoronto.ca> Organization: University of Toronto Computing Services Distribution: na Date: Tue, 5 Jun 90 03:04:01 GMT 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