Drawing a Graphice Segment
bonnmike at gmail.com
Mon Jul 27 14:32:36 EDT 2015
You could do a slightly exploded pie too, with gaps between parts. There
also the old fallback of clicking a piece to interact with it. I'll look
at the code more tonight and see if I come up with another solution or two,
but listening to bernd is never a bad idea.
On Mon, Jul 27, 2015 at 12:21 PM, Mike Bonner <bonnmike at gmail.com> wrote:
> I had tried it with opaque pixels at first, and couldn't get it to work
> for some reason. I think there was a version where opaque pixels was broke.
> Maybe I'm still using a broken lc.
> What version are you using? Just tried it here (7.0.6) and can't get
> "opaque pixels" to work for me at all.
> On Mon, Jul 27, 2015 at 12:16 PM, BNig <bernd.niggemann at uni-wh.de> wrote:
>> Hi Mike, Terence,
>> a bit of a hack but it works:
>> give the segments a radial stroke gradient of e.g. black with black at the
>> left and black at the right. Set the blendlevel of both black to just
>> full, by selecting one after the other the black little symbol in the
>> gradient setting and slider to almost right.
>> change the intersect part of the code to
>> if intersect(grc "mousepoint",grc i,"opaque pixels") then -- cycle through
>> the graphics and check for intersect
>> of course this only works if the fill of the segments is fully opaque,
>> it is in Mike's example and now the border of the segments is not part of
>> the segment.
>> Kind regards
>> View this message in context:
>> Sent from the Revolution - User mailing list archive at Nabble.com.
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
More information about the Use-livecode