get color

Blitz3D Forums/Blitz3D Programming/get color

blade007(Posted 2007) [#1]
is there a way u can detect certain colors at chosen points of the screen? like an (eye dropper) effect


MadMunky(Posted 2007) [#2]
Put something like this in your code.
GetColor(MouseX(), MouseY())

It will set the current color to whatever is under your mouse.


GfK(Posted 2007) [#3]
lol @ thread title and solution :p


blade007(Posted 2007) [#4]
... there was a code getcolor?


blade007(Posted 2007) [#5]
anyway i wanted to make a program where a ball would follow a red line how would u do this?


GfK(Posted 2007) [#6]
I'd use waypoints; i.e. the ball moves towards the first waypoint. When it reaches it, it starts moving to the second waypoint, and so on.


blade007(Posted 2007) [#7]
"waypoints /follow a line" kinda the same thing if only u could use the hidewindow command in b3D so u could u it to follow stuff on ur destop or something