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.

Bug Reports / variable= RGB(any, any, any)

Author
Message
basjak
14
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 5th Oct 2011 02:05
I think there is a bug regarding associating colour value to a variable. the variable must be declared as dword before a colour value is associated to it.

not a big issue but we're not used to that in DBpro

please have a look at this code and see the difference:

WLGfx
16
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 5th Oct 2011 05:01
I thought I'd take a look at this to see what was going on but the values are actually correct.

dword is an unsigned integer as is the return value from rgb(r,g,b) so rgb() returns rgb with alpha at 255 too so a normal int will be negative.

if you had b=rgb(255,255,255) then the program would show -1 for that value.

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!

Login to post a reply

Server time is: 2024-04-19 04:01:31
Your offset time is: 2024-04-19 04:01:31