Xref: utzoo comp.sys.mac:34588 comp.sys.mac.programmer:7485 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcvax!ukc!sys.uea!swc From: swc@sys.uea.ac.uk (S.W. Cox CMP Staff) Newsgroups: comp.sys.mac,comp.sys.mac.programmer Subject: Mac II Palettes Message-ID: <635@sys.uea.ac.uk> Date: 11 Jul 89 15:27:07 GMT Reply-To: swc@uea-sys.UUCP () Organization: University of East Anglia, Norwich Lines: 14 The RGB colour entries in Mac II's palettes are supposed to be 0 - 65535 but when converted to the conventional range 0 .. 1 by: newcol.red := col.red/65535 etc where newcol.red, green and blue are reals, it starts inserting negative numbers (possibly -32767 to 32767 or something similar). Can anybody think of a suitable assignment for going from the integers to the reals (and vice versa) apart from adding and subtracting 32767 etc. Thanks, S Cox UEA Norwich, UK swc@uk.ac.uea.sys