From: pv AT cs DOT montana DOT edu (Paul Peavyhouse) Newsgroups: comp.os.msdos.djgpp Subject: Palettes (or is it palletes?) Date: Wed, 12 Mar 97 21:31:12 GMT Organization: Montana State University Lines: 27 Message-ID: <5g8004$dtu@netra.montana.edu> NNTP-Posting-Host: esus.cs.montana.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I am really confused by Allegros use of palettes. I am new to playing with palettes, and I don't know if the implementation is standard practice or not. Where I am confused is with all of this "0-63", "0-255", and other talk about how to use the color_map palette and such to introduce lighting effects. I don't really know where to begin to ask for help, because I really don't understand what I don't understand! :) It just seems to me like if I use PaintShop to create an image with a palette that fades from black (0,0,0) to bright green (0,255,0), if I load that image in the program I am writing and "set_palette(grass_palette);", the results should NOT be cyan?!?!?!?! I hope that my understanding of palettes in general will help me to understand fade palettes too, but if anyone can explain how to make Allegro take a 256 color "black-to-green" palette and perspective fade it from "normal-to-white" acording to it's z-axis location, I would appreciate it! (what I am aiming for right now is to simply 3D mimick walking on a lawn). Thanks in advance! PV ______________________________________________________________________________ Paul Peavyhouse http://www.cs.montana.edu/~pv email: pv AT cs DOT montana DOT edu ______________________________________________________________________________