Mail Archives: djgpp/1996/09/19/20:00:44
From: | Lennart Steinke <steinke AT zeus DOT adv-boeblingen DOT de>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: JLIB: Colors?
|
Date: | Thu, 19 Sep 1996 11:33:19 -0500
|
Organization: | InterNetNews at News.BelWue.DE (Stuttgart, Germany)
|
Lines: | 21
|
Message-ID: | <Pine.VUL.3.91.960919112946.2058A-100000@zeus.adv-boeblingen.de>
|
References: | <51ensa$b94 AT news DOT stealth DOT net>
|
NNTP-Posting-Host: | zeus.adv-boeblingen.de
|
Mime-Version: | 1.0
|
In-Reply-To: | <51ensa$b94@news.stealth.net>
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
On Sat, 14 Sep 1996, Mohan Khurana wrote:
> How do the colors work in JLib?
>
> The color system in JLib is rather weird. From the examples I have
> seen, it looks like a pallete file is needed just to say, assign the
> color blue to UBYTE c1.
Nope...
To draw a blue line, you need the index of blue in the pal.
If you want to be c1 blue, use
screen_set_pal(0xc1,00,00,ff);
(or something similar, check the reference sheet).
Lenny
--
Lennart Steinke (steinke AT adv-boeblingen DOT de)
- Raw text -