delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/08/22:20:34

From: Mark Randell <drandell AT echidna DOT stu DOT cowan DOT edu DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Loading custom palette
Date: Tue, 09 Feb 1999 11:12:21 +0800
Organization: Edith Cowan University
Lines: 16
Message-ID: <36BFA795.B5AD2B22@student.cowan.edu.au>
NNTP-Posting-Host: whtstump.stu.cowan.edu.au
Mime-Version: 1.0
X-Mailer: Mozilla 4.07 [en] (Win95; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi. I can't seem to load a custom palette from an external file. I know
how to alter the palette and everything, but I can't seem to read a
number from the file and put it into the palette[i].r, palette[i].g and
palette[i].b variables. How can I do this? My palette file is set up
with 3 values for the 256 colors... much like this -

0
0
40
32
60
12

Anyway it goes on... Is there a way I can read each of these numbers
into the palette variable?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019