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 / RGB Text & background color noob question

Author
Message
Gren
12
Years of Service
User Offline
Joined: 7th Jun 2011
Location: Canada
Posted: 8th Oct 2015 22:04
Hey Guys & Gals,

I have just started to use DarkBASIC Pro today and was following some online code but it wont change background color.

So first I tried this code and by changing the first set of number it does change the text color.
But changing the 2nd set of numbers does not change background color.
I always get the word Hello in whatever color i enter and its always on black background.
I thought the 2nd set was background color or at least thats what is said, Or am I doing something wrong?

INK RGB(255,255,0) , RGB(0,0,0)
Rem Print "Hello"

WAIT KEY
End


Next I tried this code againg trying to change background color but still it will not change.
It is only the text I can make change color and not the background it on.
What am I doing wrong or am I not correct that the background should change color as well?

This link is where it gives examples https://forum.thegamecreators.com/thread/177883 and also

set text transparent
ink rgb(255,255,255),rgb(23,110,30)
Text 0,0,"Hello World!"

WAIT KEY
End


Thanks in advance
Fred
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 8th Oct 2015 22:38
You need to Set Text Opaque for background color to have an affect.
Gren
12
Years of Service
User Offline
Joined: 7th Jun 2011
Location: Canada
Posted: 8th Oct 2015 22:49
Hello,

Thanks for the info, I appreciate it.

Have a great day.
Fred

Login to post a reply

Server time is: 2024-03-28 23:06:07
Your offset time is: 2024-03-28 23:06:07