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" do not match ??

Author
Message
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 4th May 2010 16:21 Edited at: 4th May 2010 16:22
Hi all. I know that INK command needs Foreground Color,Background Color , but I´v got some PC at home and time ago I wrote some code where I could write:

ink rgb(255,0,0) and it works without any problem.

Now I`m just executing old code in one of my laptops and it gives me an error, but casually this error doesn´t appears in my last laptop.

I know that I should do:

ink rgb(255,0,0),1 but it is very frustrating that the compiler doesn´t stop the program in my new laptop in order I can correct the code.



cheers.

I'm not a grumpy grandpa
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 4th May 2010 16:25
Quote: "I know that I should do:

ink rgb(255,0,0),1"


Are you sure?

Do you know what that 1 does?

It's not a 0 or 1 flag value, it's a colour value and for black it should be 0. Using 1 is a very strange colour value to use.

Are you confusing it with CLS RGB() which doesn't need the background colour value?

TDK

Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 4th May 2010 16:50
I've notice some people's snippets does not use a background color and when I run their codes I always have to add the ",0" at the end of each of them.

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 4th May 2010 17:17
Quote: "It's not a 0 or 1 flag value, it's a colour value and for black it should be 0. Using 1 is a very strange colour value to use."


Well...eeh..a value of 0 in a range of (255)and a value of 1 is just the same ....I have ink rgb(0,0,0),1 and it still will be transparent when we se objetct


Quote: "I've notice some people's snippets does not use a background color and when I run their codes I always have to add the ",0" at the end of each of them."


Yeah...!! that is what I mean...in two of my old PC and my last laptop, I don´t need to add this "0".... the compiler, run as if it is correct code,... and in another of my laptops , it gives me that error..

When we find that other people don´t use the background color, I suppose that they can run the code correctly in their PC.

Cheers.

I'm not a grumpy grandpa
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 4th May 2010 18:21
Lol, IanM's plugins removes the need to specify a background colour on the INK command, so I imagine you haven't got it installed :p

If not... You've got me stumped

Rawwrr. Sig Fail.
Newcastle is awesome
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 4th May 2010 20:55
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 4th May 2010 22:46
Quote: "Lol, IanM's plugins removes the need to specify a background colour on the INK command, so I imagine you haven't got it installed :p"


Yesss!!....you are right....the problem comes nowaday with my little laptop that I take when I go out to work....it is a samsung 10" screen, and I just install Darkbasic Pro to not get bored at work....and in this one a haven´t IanM´s plug-in.

Now I feel better knowing that the mystery is solved

cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2026-07-26 04:28:02
Your offset time is: 2026-07-26 04:28:02