mouse within oval filled area

BNig niggemann at
Sat Nov 12 18:23:08 EST 2011

Hi Hugh,

to get the area of a oval graphic with a startangle and an acrangle set and
opaque to true you could use the new 5.0 intersect(object,object,"pixel")
You would have to cheat though in that you create a hidden polygon graphic
"hidden" and call your start/arcangle graphic "halfCircle" plus any field
for feedback

The script of graphic "halfCircle" could be:

on mouseWithin
   put the mouseLoc into tLoc
   put item 1 of tLoc - 1 & comma & item 2 of tLoc - 1 & comma & \
         item 1 of tLoc +1 & comma & item 2 of tLoc + 1 into tRect
   set the rect of grc "hidden" to tRect
   if intersect(graphic "halfCircle", grc "hidden", "pixels") then
      put the milliseconds into field 1
      put "" into field 1
   end if
end mouseWithin
it works but it is a more of a hack.

maybe someone has a better solution...

Kind regards


View this message in context:
Sent from the Revolution - User mailing list archive at

More information about the Use-livecode mailing list