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 / point command

Author
Message
old time fun
20
Years of Service
User Offline
Joined: 5th May 2004
Location: Scotland
Posted: 6th May 2004 01:50
DBpro with latest update

I am a bit confused about the point(x,y) command, when i use it to point at a pixel that is white is returns 16777215 and black as 0, reading the manual it says it returns the pixel color value, what is the pixel color value?
GameKit
21
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 6th May 2004 02:06 Edited at: 6th May 2004 02:07
To get the red green blue color values of the pixel you have to say something like...

Color=Point(x,y)
Red=RGBR(Color)
Blue=RGBB(Color)
Green=RGBG(Color)

The pixel color value is what you get when you take (Blue+Green^2+Red^3), or something along those lines...

...Well... I hope I helped...

Previously known as "Game_Creator". Thou shalt not thwart the way of the dragon. For thou tasteth like chicken.
old time fun
20
Years of Service
User Offline
Joined: 5th May 2004
Location: Scotland
Posted: 6th May 2004 02:10
i will have a potter about with it, thx for the help.

Login to post a reply

Server time is: 2024-09-22 08:36:36
Your offset time is: 2024-09-22 08:36:36