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 / DBPro INK command background problem

Author
Message
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 15th Sep 2006 23:08
Quote: "

INK
This command will set the current ink color using the specified color value. color values range from 0 to
over 16 million, that represent every combination of red, green and blue to make up the final color. You
can use the RGB command to make the generation of the color value straight forward. The parameter
should be specified using integer values.

SYNTAX
INK Foreground Color,Background Color

"


I can't seem to get the Backround Color to work.
No matter what value I give it, the background color stays the same....black.
Am I missing something?


Don't forget to visit Conjured Entertainment
Cave Man
18
Years of Service
User Offline
Joined: 22nd Aug 2006
Location: North Carolina, US
Posted: 15th Sep 2006 23:18
it does't change the color of the background. To blank the screen with a color use the CLS command



Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 15th Sep 2006 23:49 Edited at: 15th Sep 2006 23:55
Thanks,
I got that far on my own too, but it left me wondering.

If INK doesn't change the Background Color, then why require it in the syntax?

Also,
If I have to use CLS to set the background color, then how would I change it without erasing everything else?

That's why I was hoping that I was misiing something.
Oh well, I guess I have to make a box behind everything that is the same size as the screen, then change its color.

                                                 


Don't forget to visit Conjured Entertainment
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 16th Sep 2006 00:17
the background in the "ink" command changes the background behind text. this background is made transparent by default, but if you want to see it use "set text opaque"

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 16th Sep 2006 00:17 Edited at: 16th Sep 2006 00:19
Maybe it's for things like opaque text, like, ink rgb(255,0,0),rgb(0,255,0) would give a red text color, and green background color. Not sure though.

[edit]
Posted simultaniously with deamon lol

Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 16th Sep 2006 01:05
Quote: "this background is made transparent by default, but if you want to see it use 'set text opaque'
"


Thanks Daemon




Don't forget to visit Conjured Entertainment

Login to post a reply

Server time is: 2024-11-27 07:32:57
Your offset time is: 2024-11-27 07:32:57