[Coco] CoCo3 64-colors and the 16-color palette used by text windows
Wayne Campbell
asa.rand at gmail.com
Mon Mar 31 17:20:43 EDT 2014
I have been having trouble understanding how to set the palette registers
and use the colors of my choice.
I know that registers 2 and 3 are window foreground/border default and
window background default. I know the default colors in the 16-color
palette are (in order) white, blue, black, green, red, yellow, magenta and
cyan, and that the palette registers 8-15 duplicate this list.
I tried setting the palette as follows (I know the colors are not the right
colors):
RUN GFX2("PALETTE",0,58) \!light gray (dark white)
RUN GFX2("PALETTE",1,14) \!dark blue
RUN GFX2("PALETTE",2,17) \!dark gray (light black)
RUN GFX2("PALETTE",3,16) \!dark green
RUN GFX2("PALETTE",4,32) \!dark red
RUN GFX2("PALETTE",5,48) \!dark yellow
RUN GFX2("PALETTE",6,33) \!dark magenta
RUN GFX2("PALETTE",7,28) \!dark cyan (teal)
RUN GFX2("PALETTE",8,58) \!light gray (dark white)
RUN GFX2("PALETTE",9,14) \!dark blue
RUN GFX2("PALETTE",10,17) \!dark gray (light black)
RUN GFX2("PALETTE",11,16) \!dark green
RUN GFX2("PALETTE",12,32) \!dark red
RUN GFX2("PALETTE",13,48) \!dark yellow
RUN GFX2("PALETTE",14,33) \!dark magenta
RUN GFX2("PALETTE",15,28) \!dark cyan (teal)
Since none of the colors is any of the default colors, you would think I
would not see any of those colors, but yellow still shows up as the
foreground color to the first options overlay window. I do not understand
how these registers work, or how colors are dealt with by OS-9.
All I want is a set of 16 colors where 8 are dark versions and 8 are light
versions, using light and dark gray to act as "dark white" and "light
black".
Someone please help me understand how to use these registers?
Wayne
--
The Structure of I-Code
http://www.cocopedia.com/wiki/index.php/The_Structure_of_I-Code
decode
http://cococoding.com/wayne/
More information about the Coco
mailing list