Point in Poly
richmondmathewson at gmail.com
Wed May 29 12:35:43 EDT 2013
I made a stack with a regular polygon shape (7 sides)
filled with a very 'fetching' green,
and a field called "INN",
and put this script into the graphic:
put the mouseColor into fld "INN"
and . . .
when the mouse was WITHIN the coloured polygon I got
83,195,64 i.e. the fetching green
and when inwith the bounding rect but outwith the polygon I got
so "there you go"; all done and dusted :)
P.S. Ooooh, and by the way Happy Campers if you don't feel in the mood
for a fetching green
why not go for a more moody 'Rose' or even a 'Gay Grenache'; it will go
well with your scarf!
More information about the Use-livecode