Drawing a Graphice Segment

Klaus major-k klaus at major-k.de
Tue Jul 28 06:04:17 EDT 2015

Hi friends,

> Am 28.07.2015 um 09:28 schrieb Terence Heaford <t.heaford at icloud.com>:
>> On 27 Jul 2015, at 22:27, Scott Rossi <scott at tactilemedia.com> wrote:
>> Just to beat the horse a bit more,
> And another based on mathematics.
> When you create the pie chart segments you know the start angle and end angle, so save them with the segment.
> In my case I use uStartAngle and uEndAngle.
> Then apply using:

for utmost speed you should always use the params that come with „mousemove“
and not execute one or two additional functions to get the current mouse postition:

on mouseMove X,Y
>   lock screen
  ##  put the mouseH into tMouseX
  ##  put the mouseV into tMouseY
>   put chartLeft() + chartWidth()/2 into tCentreX
>   put chartTop() + chartHeight()/2 into tCentreY
  put X - tCentreX into tDeltaX
  put Y - tCentreY into tDeltaY



Klaus Major
klaus at major-k.de

More information about the Use-livecode mailing list