Changing default colors in Screen 1
Posted: Sun Dec 03, 2006 8:44 pm
Hi Guys,
I was trying to change the default colors for screen one. Now I know you can assigned any of the 16 colors to the 4 CGA colors with the PALETTE COMMAND.
Example:
SCREEN 1
PALETTE 2, 4 'Turns the Magenta to Red for color 2
However, I was wondering if you could apply the routine as it is
used under SCREEN 13, but in SCREEN 1.
SCREEN 13
LINE (10, 10)-(160, 100), 2, BF
OUT &H3C8, 2 'The Number of the color to assign...
OUT &H3C9, 42 'Red values from 0 to 63
OUT &H3C9, 10 'Green
OUT &H3C9, 45 'Blue
'The above gives color 2 a custom color (from the default).
My question is by using a different HEX address, can this type of routine be allied in the colors under SCREEN 1, so I could get a custom set of 16 colors to utilize (instead of the default).
Any help kindly appreciated.
~Mic
I was trying to change the default colors for screen one. Now I know you can assigned any of the 16 colors to the 4 CGA colors with the PALETTE COMMAND.
Example:
SCREEN 1
PALETTE 2, 4 'Turns the Magenta to Red for color 2
However, I was wondering if you could apply the routine as it is
used under SCREEN 13, but in SCREEN 1.
SCREEN 13
LINE (10, 10)-(160, 100), 2, BF
OUT &H3C8, 2 'The Number of the color to assign...
OUT &H3C9, 42 'Red values from 0 to 63
OUT &H3C9, 10 'Green
OUT &H3C9, 45 'Blue
'The above gives color 2 a custom color (from the default).
My question is by using a different HEX address, can this type of routine be allied in the colors under SCREEN 1, so I could get a custom set of 16 colors to utilize (instead of the default).
Any help kindly appreciated.
~Mic