Page 1 of 1

Color command in screen 12

Posted: Thu May 13, 2010 1:02 pm
by gablea
hi all,

can someone advice me how do I control the backgound color of my text in screen 12

when I use Color 7,15 (for while background) I get a Error

and when I use Color 7 I get JUST THE text in the color I want and a back background. how can I make it so the background is the color I want

Posted: Thu May 13, 2010 4:32 pm
by burger2227

Posted: Thu May 13, 2010 10:42 pm
by bongomeno

Code: Select all

OUT &H3C8, 0 ' change color attribute 0 (black)
OUT &H3C9, 30 ' red value from 0 to 63
OUT &H3C9, 20 ' green 0 to 63
OUT &H3C9, 10 ' blue 0 to 63
I was thinking about asking the same thing about screen 13. Will this code also work with it? I cannot test it as I am on windows vista atm.

Thanks.

Posted: Fri May 14, 2010 9:59 am
by burger2227
SCREEN 13 colors can also be changed using OUT. The BG color is attribute 0 also although there are 256 colors to work with.