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.

Dark GDK / 2 problems i found

Author
Message
rockstar8577
7
Years of Service
User Offline
Joined: 22nd Jan 2012
Location:
Posted: 22nd Jan 2012 14:34 Edited at: 22nd Jan 2012 22:53
Well I'm somewhat new to Dark GDK. I'm using it in a college class and i have found 2 errors in the library so far. Or at least i believe them to be errors.

The first is in the RGB function when i want a certain color i have to switch the red and blue numbers.
For example for red i need to use RGB(0,0,255) while for blue i need to use RGB(255, 0, 0).

Now for the second problem i have come across. If i changing from the default ink set, and try to change it back my backspaces now put a whitespace where i backspaced. I tried all the different combinations with WHITE and BLACK in the dbInk() function and i can only draw if i change the ink back to dbInk(WHITE, WHITE);

Maybe its something else that i'm not noticing with these problems but some insight would be greatly appreciated.
Mister Fuzzy
8
Years of Service
User Offline
Joined: 27th Feb 2011
Location: XNA
Posted: 23rd Jan 2012 03:06
These problems could be a user error, or maybe not. Could we see some code?

Tunnel vision yet? Have a carrot!
Mr Bigglesworth
11
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 23rd Jan 2012 03:54
Quote: "The first is in the RGB function when i want a certain color i have to switch the red and blue numbers.
For example for red i need to use RGB(0,0,255) while for blue i need to use RGB(255, 0, 0)."


I haven't had this problem, could you post an example?
rockstar8577
7
Years of Service
User Offline
Joined: 22nd Jan 2012
Location:
Posted: 23rd Jan 2012 04:25


Here is an example and here is a screenshot. I don't really know how else to show and explain it.

I did 2 for each color because i didn't know if the backcolor would effect anything. So i did it to cover my basis.

Attachments

Login to view attachments
Mireben
11
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 25th Jan 2012 20:40
You are using a Windows function by accident. The Dark GDK colour function is dbRGB, not just RGB. Change all the names and the order of the colours will be correct.
rockstar8577
7
Years of Service
User Offline
Joined: 22nd Jan 2012
Location:
Posted: 26th Jan 2012 04:41
Ohhhh thank you, so that's what i was doing wrong.

Any idea on why backspacing when i change the default dbInk makes the space white, or whatever color the text is?
Mireben
11
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 26th Jan 2012 19:53
What exactly do you mean by backspacing, can you post some code for that too?
rockstar8577
7
Years of Service
User Offline
Joined: 22nd Jan 2012
Location:
Posted: 27th Jan 2012 13:56
The code would be the exact same as i posted before. At the inputs when you backspace after having changed the ink you the backspace is white. Well at least in the case its just a white space. I even fixed it with dbRGB and it still gives a white space.
Mireben
11
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 30th Jan 2012 20:33
Sorry for not replying, I haven't been on the forum for a few days. Anyway, I don't know the answer unfortunately, and for me the question is still not completely clear, since there is no input in the code posted above.
rockstar8577
7
Years of Service
User Offline
Joined: 22nd Jan 2012
Location:
Posted: 31st Jan 2012 07:52
Ohhh mybad, i thought i put input in there. Well i found the problem. I tried it with dbRGB() before to see if that was the problem and it didnt work. Now i tried it again while writing up some quick code and it works. So i guess my questions have been answered

Login to post a reply

Server time is: 2019-12-13 21:31:26
Your offset time is: 2019-12-13 21:31:26