Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Broken CLS or my computer

Author
Message
brittd99
23
Years of Service
User Offline
Joined: 16th Sep 2002
Location:
Posted: 2nd Sep 2003 07:07
Ok this code below using the CLS command along with the ink command I thought would start the background screen out white and the text black. But all it does is make the text black and the background black. Is the ink or cls broke, or are both broke?

I have DX9b & latest Geforce4 drivers.

Does anyone else have this problem with the code?
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 2nd Sep 2003 07:30 Edited at: 2nd Sep 2003 07:39
What you're doing there is trying to change the background color of the text. If you want to change the screen background color you can combine Cls with RGB:

cls rgb(256-a,0,0)



Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 2nd Sep 2003 07:44
I think I've got that right, off the top of my head, it's late here and I'm a bit tired (yawn!)

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
brittd99
23
Years of Service
User Offline
Joined: 16th Sep 2002
Location:
Posted: 2nd Sep 2003 08:03
Thanks, your code worked, I guess i just don't understand what the help file is trying to say:

CLS
This command will clear the screen using the current background ink color previously specified with the INK
command. This command differs from the CLS found in the Basic2D command set which will paint the
screen with a specified color.

Login to post a reply

Server time is: 2026-07-23 15:49:18
Your offset time is: 2026-07-23 15:49:18