alternative to mousecolor to get a color from loc?

John Dixon dixonja at hotmail.co.uk
Fri May 6 03:46:44 EDT 2011


Hi Tiemo...

I didn't read your post very closely... you wanyed it as a function

on mouseUp
   put pixelColor (10,10)
end mouseUp

function pixelColor x,y
   put the topLeft of this stack into theLoc
   set the screenMouseLoc  to (item 1 of theLoc + x,item 2 of theLoc + y)
   return the mouseColor
end pixelColor

Dixie


> I would like to get the (RGB) color from a script defined location, without
> moving the mouse to this loc.

> Any idea?
> 
> Tiemo

 		 	   		  


More information about the use-livecode mailing list