From: Groepaz (groepaz_at_gmx.net)
Date: 2002-12-07 11:22:54
On Friday 06 December 2002 23:44, Christian Groessler wrote:
> As already noticed, Atari 40x24 text mode is very restricted in it's
> color choices. The background, border and text colors are controlled
> by 3 different color registers. For background and border all
> combinations are possible. But the text color is always the same color
> as the background, the color register only selects the brightness.
>
> The textcolor(), bgcolor() and bordercolor() set these color
> registers.
>
> >It's even worse than that, since in Graphics mode zero, the background and
> > text are both controlled by the same color register. Another register
> > controls the luminance value, IIRC. So textcolor sets the color of the
> > text AND the background!
> >
> >Doing a textcolor(COLOR_RED) on the atari doesn't give you red text, at
> > least it didn't for me.
>
> Use bgcolor() to set the color. textcolor() only selects the luminance
> of the text.
that shouldnt be the case though
> The c64-compatible COLOR_xxx defines don't make much
> sense in this context.
ehrm... in what sence is something like "COLOR_RED" c64 specific? (or are you
saying someone just cut'n'pasted the values? :=P)
> The brightness is specified by bits 1 to 3 of
> the colorvalue, use textcolor (0xe) for max. bightness, or
> textcolor(0) for max. darkness of the text.
looks to me as if someone was a bit lazy with the implementation here :o)
the vic20 conio seems to have simelar flaws aswell.... i think i am going to
look at it :o)
--
___ ___ .___________________ .___________ _______.
c=64 / | \| \__ ___/ \ \_ _____/ \ \ [groepaz]
gb / ' \ | | | / \ / \ | __)_ / | \ gp32
cgb \ . / | | |/ ' \| \/ | \ psx
gba \___|_ /|___| |____|\____|__ /_______ /\____|__ / dc
-----\/-----'---------------\/--------\/---------\/
http://www.hitmen-console.org Hitmen WWW Headquarters
http://fly.to/hitmen-groepaz my personal playground
http://rr.c64.org/silversurfer home of the RR debugger
ftp.musoftware.de/pub/groepaz cc65 dump site
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2002-12-07 09:59:43 CET