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 / My Ink Command doesn't work

Author
Message
DBProUser
15
Years of Service
User Offline
Joined: 28th Oct 2010
Location:
Posted: 8th Nov 2010 22:25
Hello Again,

i was programming som code when i find out, that my ink Command somehow doesn't work.

If i try some code like this one:

INK RGB(255,255,0),RGB(0,0,255)
PRINT "YELLOW IN BLUE"
WAIT KEY

Then i get the yellow Text, but the Background stays still Black. So what i am doing wrong, or is it just my DarkBasic Pro which is faulty?

Thanks for help
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Nov 2010 00:11
Text uses a transparent background by default. You can enable the background colour by using the SET TEXT OPAQUE command.

Utility plug-ins (26-JUL-2010)
I'm applying terms of use that require you to wear a red nose and honk a horn whenever you use the Internet
DBProUser
15
Years of Service
User Offline
Joined: 28th Oct 2010
Location:
Posted: 9th Nov 2010 08:32
Sorry, my fault. this was not what i meant. I was yesterday a little bit tired, so i copied the wrong Code-Snippet.

I try again:
What i wanna do, is to clear the Background in another Background-Color

something like that

do

background = RGB(Rnd(255),Rnd(255),Rnd(255))
ink 0, background
CLS
Wait 30

Loop

it would look like

Backdrop ON
Color Backdrop RGB(Some Color)

Sorry for the confusion i caused earlier. It would be great, if you have also an answer for that.

Thanks!
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Nov 2010 14:18 Edited at: 9th Nov 2010 14:22
No problem:


Utility plug-ins (26-JUL-2010)
I'm applying terms of use that require you to wear a red nose and honk a horn whenever you use the Internet
DBProUser
15
Years of Service
User Offline
Joined: 28th Oct 2010
Location:
Posted: 9th Nov 2010 18:21
I am so unworthy. (kneel down)


Thanks again IanM

Login to post a reply

Server time is: 2026-07-26 05:03:43
Your offset time is: 2026-07-26 05:03:43