Re: [cc65] Atari TGI drivers, finally

From: Groepaz <groepaz1gmx.net>
Date: 2009-10-25 02:29:54
On Sonntag 25 Oktober 2009, Fatih Aygün wrote:
> Hi,
>
> > I must admit that this seems totally reasonable to me...
> > If you have a two color driver with the valid values 0 and 1 then
> > there should be two macros with the values 0 and 1. Most probably
> > called COLOR_BLACK and COLOR_WHITE.
>
> I must disagree. I don't know much about c64 but the values we're
> talking about are not colors, they are palette indices. So, one can
> change the palette so that 0 is red and 1 is blue for example. In that
> case defining macros as COLOR_BLACK and COLOR_WHITE will
> simply be wrong. COLOR_BACK and COLOR_FORE is much more
> reasonable but other graphics modes have more colors. So these
> macros are only meaningfull for 2-color modes only.
>
> In other words, I think that COLOR_xxx macros belong to palette
> definitions (tgi_setpalette) not to palette index selection (tgi_setcolor).

it is the same in C64 hires mode, there you can also pick 2 colors from 16 
possible colors. traditionally they are called "paper" (background) 
and "tint" or "pen" (foreground) ... which might be slightly better/less 
confusing, because on a c64 the *actual* background color ($d021 video 
register) can not be used at all, both colors are defined by the videoram 
(unlike in multicolor mode, where $d021 really means the background color).

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

Jeder Mensch hat ein Recht auf Dummheit. Einige Menschen missbrauchen dieses 
Recht allerdings sehr stark.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Oct 25 02:29:10 2009

This archive was generated by hypermail 2.1.8 : 2009-10-25 02:29:11 CET