BS coming along - should be able to post my demo tomorrow.
Had a really clever idea, the colour of the objects on the screen will determine the interactions with the liquid.
For example different lines which all look black could be drawn in colours RGB(1,0,0),RGB (0,1,0)...(0,0,1)(1,1,0)(2,0,0) etc and this saves storing the properties of the things on the screen, just need to look at the pixel colour
I need someones help on RGB function
1) if I do
hit=form1.getpixel(x,y+1) 'look at the color of the thing uve hit one pixel belowu
how do I get the RGB componets of the value hit
2) How do I delare hit as a double in the Global area - will just hit=RGB(0,0,0) automatically set it to the double variable type?
|