I'm having some trouble with the POINT command in FB. I'm using it to check the rgb colour values of the background against something else but for some reason it only works with rgb values of 0 or 255.
eg.
this works fine
dotcolour = point(x,y)
if dotcolour = &hFF00FF then blah blah blah
but this doesn't
dotcolour = point(x,y)
if dotcolour = &h808080 then blah blah blah
Any ideas??
what's the point?
what's the point?
Towels may be harmful if swallowed in large quantities.
- {Nathan}
- Veteran
- Posts: 1169
- Joined: Thu Aug 19, 2004 6:08 pm
- Location: The wetlands of central Ohio, USA
- Contact:
Yes, I have an idea.
Use the RBG() function, and find a converter for the hex to RBG.
http://www.kenjikojima.com/java/RGBHexConverter2.html
The above seems so work. If you need more, just google "hex color rbg converter."
-Nathan
Use the RBG() function, and find a converter for the hex to RBG.
http://www.kenjikojima.com/java/RGBHexConverter2.html
The above seems so work. If you need more, just google "hex color rbg converter."
-Nathan
The windows calculator is as good a converter as any and I've tried both using RGB() and &h.
It returns a value close to the colour but not the colour itself.
The picture that is being POINTed is a grey colour RGB(128,128,128) or &h808080 POINT returns 8684164 which is &h848284 in hex which is RGB(132,130,132)
it was BLOADed from a .BMP file too if that has anything to do with it.
It returns a value close to the colour but not the colour itself.
The picture that is being POINTed is a grey colour RGB(128,128,128) or &h808080 POINT returns 8684164 which is &h848284 in hex which is RGB(132,130,132)
it was BLOADed from a .BMP file too if that has anything to do with it.
Towels may be harmful if swallowed in large quantities.