the points of graphic
Jim Hurley
jhurley0305 at sbcglobal.net
Sun Jan 19 18:44:50 EST 2014
Thanks, Klaus, and sorry Michael.
I forgot. I have sine and cosine functions in the stack script:
function sine tAngle
return sin(tAngle /180*pi)
end sine
Similarly for the cosine.
Jim
> Hi Michael,
>
> Am 19.01.2014 um 16:41 schrieb Michael Kristensen <
> michael-kristensen at dsa-net.dk
> >:
>
> >
> hi Jim
>
> >
>
>
> >
> ...
>
> >
> I put it in a button in alejandros stack and get errors.
>
>
> Replace cosine with COS and sine with SIN in the handler:
> ...
> >
> add L * cos(j*tAngle) to dx
>
> >
> subtract L * sin(j*tAngle) from dy
>
> ...
> That does the trick :-)
> And of course you need a polygon graphic named "polygon"!
>
> >
> ...
>
> >
>
>
> >
> Michael
>
>
> Best
>
> Klaus
>
> --
> Klaus Major
>
> http://www.major-k.de
> klaus at major-k.de
>
>
More information about the use-livecode
mailing list