Re[2]: [cc65] Graphics library

Date view Thread view Subject view

From: groepaz (groepaz_at_gmx.net)
Date: 2001-08-18 16:19:13


Hello Maciej,

Friday, August 17, 2001, 5:38:39 PM, you wrote:

MW> On Fri, Aug 17, 2001 at 04:43:55PM +0200, Ullrich von Bassewitz wrote:
>> > Color stuff is somewhat confusing - there should be some interface to set
>> > color pallete for given mode.
>> 
>> Are there really systems that have a programmable color palette? At least the
>> CBM machines have fixed colors.

MW> There is setcolor for foreground, but how can background color be set? For C=
MW> it would be higher 4 bits, but other architectures might have common
MW> background color for whole image.

err? higher 4 bits of WHAT are background color in WHICH mode ? (you
must be meaning something differently or you dont know what the f***
you are talking about :o))

MW> I think about something like in C128 Basic, where drawing functions take color
MW> number not color value. E.g. for 160x200x4 there is palette of 4 colors from
MW> 16 available.

yeah, they should always take color-numbers (as in "palette index")
since they would only waste a lot of time translating color-values to
indices.

MW> And what should getmaxcolor return for 160x200x4 on C64: 4 or 16?

you say it yourself... if you call the mode 160x200x4, the maximum of
colors _IS_ 4, so the function should return 4 ;=) the function that
sets the color-palette should give you "4 out of 16 possible colors"
so you can set those accordingly.

-- 
Best regards,
 groepaz                            mailto:groepaz_at_gmx.net


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:41 CET