Re: [cc65] TGI palettes (was: TGI colors revisited)

From: Karri Kaksonen <karri1sipo.fi>
Date: 2011-05-11 16:29:28
On 05/11/2011 02:33 PM, Oliver Schmidt wrote:
> Ideas, comments, opinions, objections?
>

 From the programmers point of view I would scrap the concept of 
TGI_COLOR_RED completely.

Instead I would have pens.

tgi_setpen(index, R, G, B);
tgi_setpen(index, intensity); // For bw display

To draw in black I could write:

tgi_setpen(0, 0);

White would be

tgi_setpen(1, 255);

Red could be

tgi_setpen(2, 255, 0, 0);

--
Karri

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed May 11 16:29:40 2011

This archive was generated by hypermail 2.1.8 : 2011-05-11 16:29:43 CEST