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 / Ink rgb(forground colour),rgb(no background colour!)

Author
Message
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 21st Jun 2003 13:03
running in 3d

ink rgb(0,255,0),rgb(0,0,0)
set cursor 0,0
print "Testing"
this only seems to produce green writting and no background.
surely its meant to be green text on a black background (background only spans the size of the text printed??! doesnt it??!!
Reset
haggisman
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 13:36
DBpro automatically sets texts to transparent, just use the set text opaque command.

project: light/obscurance mapper (85% done)
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 21st Jun 2003 13:47
o rite kk

Reset
Shadow
23
Years of Service
User Offline
Joined: 17th Oct 2002
Location: In the shadows
Posted: 21st Jun 2003 19:56
Don't use rgb(0,0,0). It equals 0, which is a lot quicker to type.
Shadow
23
Years of Service
User Offline
Joined: 17th Oct 2002
Location: In the shadows
Posted: 21st Jun 2003 19:56
Also, use -1 for white.
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 21st Jun 2003 22:31
hehe rgb(0,0,0)=0 i knew that i just use rgb cus it looks nicer )
but didnt know that -1 is white [img] [/img]

Reset
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 22:42
Its because $FFFFFFFF = -1

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2026-07-11 14:56:33
Your offset time is: 2026-07-11 14:56:33