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.

Newcomers DBPro Corner / setting a background colour

Author
Message
New Emperor
11
Years of Service
User Offline
Joined: 16th Oct 2012
Location:
Posted: 20th Oct 2012 19:30
Hi so i am very new to this but i am going through a really good tutorial and I decided to play around with what i have got so far and came up with this program that brings up text in different colors but i can't seem to change the background from black to wight here is my code help please



http://imgs.xkcd.com/comics/microsoft.png
nonZero
12
Years of Service
User Offline
Joined: 10th Jul 2011
Location: Dark Empire HQ, Otherworld, Silent Hill
Posted: 20th Oct 2012 20:41
the second argument (parameter) for the INK function controls the background colour. Also, you must call SET TEXT OPAQUE before blitting the text in order for the background colour to be visible.


chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 21st Oct 2012 00:23
Hi

Try this:



Cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2024-04-25 12:39:29
Your offset time is: 2024-04-25 12:39:29