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 / ink rgb and its background

Author
Message
nnndohh
18
Years of Service
User Offline
Joined: 12th Aug 2006
Location: netherlands
Posted: 13th Aug 2006 02:27
i'm am reading hands on darkbasic vol 1.
in 1 of the listings it says that . ink rgb(255,255,0), rgb(0,255,0) . will show the text in yellow with its background in green

but in either print or text i can only see the color of the text, with no background

how come?
CreamPie
18
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 13th Aug 2006 06:00
edo,

You might have to use the TEXT 0,0,"Text" command to enable that feature. However, I am not sure and am not at home to test the theory.

>-Formerly known as NanoBrain-<
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 13th Aug 2006 06:20
Because text has a default of transparent background.

put "set text opaque" before your print or text command.

nnndohh
18
Years of Service
User Offline
Joined: 12th Aug 2006
Location: netherlands
Posted: 13th Aug 2006 12:54
last night i was reading it again and again...thought, this listing in the book isn't right , until i come to the section set text opague
and it works

i been here for a couple of years now,with another name, reading the forums, but never programmed anything, maybe to lazy
but thanks for the reply guys

Login to post a reply

Server time is: 2024-09-25 05:23:39
Your offset time is: 2024-09-25 05:23:39