Hi friends,

> Am 28.07.2015 um 09:28 schrieb Terence Heaford <t.heaf...@icloud.com>:
>> On 27 Jul 2015, at 22:27, Scott Rossi <sc...@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
…
:-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to