delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/17/14:01:28

From: shoguntim AT aol DOT com (ShogunTim)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ALLEGRO - 256 shades of grey?? How?
Date: 17 Oct 1997 10:13:11 GMT
Lines: 24
Message-ID: <19971017101301.GAA06037@ladder02.news.aol.com>
NNTP-Posting-Host: ladder02.news.aol.com
Organization: AOL http://www.aol.com
References: <EI61FB DOT 4Bn AT cix DOT compulink DOT co DOT uk>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>In 800*600*256 mode, GRX20 lets you set up 256 shades of gray. >ALLEGRO in 
>the same mode only lets you set up 64 (then you get them >repeated 3 times 
>as the routine uses 6 bits per colour).
>
>How do I get the full 256 shades of grey. HELP!!!
>

Since its 18 bit color depth 6 bits per color you can't have 256 shades of true
 gray no matter what.  So GRX20 isn't doing what you think it is.   But you can
 have 256 fake shades by setting it up something like this

0,0,0 - 1,0, 0 - 1, 0, 1 - 1, 1, 0...        
   This may work but would 1,1,0 look brigther than 1,0,1?
0,0,0 - 1, 0, 0 - 1, 0, 1 - 1, 1, 1 ...    
    Really this is only 192 shades
   Or the easiest way is to just fake it
0,0,0 - 0,0,0  - 0, 0, 0 -  0, 0, 0...

--------l- Shogun




- Raw text -


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