Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!brutus.cs.uiuc.edu!samsung!rex!rouge!gator.cacs.usl.edu From: pcb@gator.cacs.usl.edu (Peter C. Bahrs) Newsgroups: comp.graphics Subject: Displaying RGB's to screen Message-ID: <4218@rouge.usl.edu> Date: 20 Feb 90 21:15:56 GMT Sender: anon@rouge.usl.edu Distribution: usa Organization: The Center for Advanced Computer Studies, USL Lines: 16 I am working on this distributed ray tracer. It works fine. But I have a little problem: Displaying the results. The output is rgb values 0-255 (thought of a % of 255). I have a VGA that can display 256 or 16 simultaneous colors. I am sure this has been discussed numerous times but what is the most straightforward way of mapping %'s to colortable to pallete? /*------------Thanks in advance...---------------------------------------+ | Peter C. Bahrs | | The USL-NASA Project | | Center For Advanced Computer Studies INET pcb@gator.cacs.sl.edu | | University of Southwestern Louisiana ...!uunet!dalsqnt!gator!pcb | | Lafayette, LA 70504 | +-----------------------------------------------------------------------*/