Color at a location on the screen

Klaus Major k_major at os.surf2000.de
Thu Jan 30 09:22:01 EST 2003


Hi Matt,

> Hello
>
> Does anyone know how to find the color at a location on the screen?
>
> I've got a small clear circle that drags constrained horizontally over 
> a color bar to select a color. The mouseColor works perfectly as long 
> as the cursor is over the color, but as the clear circle is 
> constrained to the color bar, the cursor can really be anywhere.  So I 
> need to find the color at a location, ie where the circle is on the 
> color bar.  I've searched under 'screen', 'loc', 'cursor', 'color' and 
> every other combination I can think of.
>
> I seem to recall an external or was I thinking of another script 
> language?

Cobol? ;-)

> Thanks again, if anyone knows...
>
> M@

check the "screenmouseloc" entry in the index.

You could store the old mouseloc, set the screenmouseloc to the desired
point inside your clear circle, get the mousecolor and set the mouseloc
to its old loc again...

Just a thougth, but should be doable...

Hope that helps.


Regards

Klaus Major
k_major at os.surf2000.de




More information about the use-livecode mailing list