Background
Author |
Message |
Jagoff
|
Posted: Thu Nov 06, 2008 3:48 pm Post subject: Background |
|
|
This is a really dumb question I bet as has been asked a million times but I can't find it even after like 30 minutes of lurking.
I'm making a program, and I want to have a background (all black) and I want to be able to cls without it being erased as well.
I looked into Draw.Cls but it switches it back to colour zero, is there anyway I can make it so it cls' to black, like make zero, seven? Or is what I'm asking for impossible.
Sorry again, thanks in advanced. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
metachief
|
Posted: Thu Nov 06, 2008 3:53 pm Post subject: RE:Background |
|
|
You can either draw a black box the size of your screen or you can use colorback (7). |
|
|
|
|
|
The_Bean
|
Posted: Thu Nov 06, 2008 7:54 pm Post subject: Re: Background |
|
|
Text.ColourBack(7) is the way to go
if for some reason you really want to make colour 0= colour 7 then
you can do RGB.SetColour(0,0,0,0)
end if
%although it is highly not recommended |
|
|
|
|
|
Insectoid
|
Posted: Thu Nov 06, 2008 10:37 pm Post subject: RE:Background |
|
|
Colorback will draw a line across the window. Colorback followed by cls will draw the entire thing black, and no matter how many times you cls, it will stay black. (Hurray for Turing on Mac!) |
|
|
|
|
|
Jack140
|
Posted: Sun Nov 16, 2008 8:17 pm Post subject: Re: Background |
|
|
Hi,
This is what I use for all my backgrounds... I just obviously change the color of the text and background.
That's pretty much it...
code: |
% Setting up Window
View.Set ("graphics,nocurser")
setscreen ("graphics:1268,693") % Change this to whatever size you want
colorback (black) % Background = black
cls
color (green) % Color of text, change it to however you want...
|
I hope this helps... |
|
|
|
|
|
|
|