Path: utzoo!attcan!uunet!aplcen!samsung!cs.utexas.edu!yale!cs.yale.edu!tarr-michael From: tarr-michael@CS.YALE.EDU (michael tarr) Newsgroups: comp.sys.mac.programmer Subject: Classic to Color Quickdraw Message-ID: <26219@cs.yale.edu> Date: 18 Sep 90 02:15:38 GMT Sender: news@cs.yale.edu Organization: Department of Psychology, Yale University Lines: 23 Nntp-Posting-Host: algeria.ai.cs.yale.edu Here a few things not answered in IM V: I can't seem to access the global array QDColors which supposedly has the RGB defs for the 8 original mac colors. I realize there is a rsrc in the system for these, and a defQDColors = 127 for the rsrc, but I am not sure how to pull them into my code or if it is done automatically. I am using THINK C 4.02 by the way. What is the meaning of the values for the original 8 colors (e.g. blackColor, greenColor, etc...)? They are not indexes into the system clut, but they are none sequential numbers. Basically I want to go from these to rgb values and back -- right now I just build a big array and compare. The functions GetForeColor and GetBackColor are purely color QD as far as I can tell -- I can get thePort->bkColor and thePort->fgColor in non- color QD worlds, but it would be nice if either worked... -- * Mike Tarr The Human Neuron Project * * tarr@cs.yale.edu Department of Psychology * * "My opinions are always my own." Yale University * **************************************************************************