Richmond,
Check out the xyAD routine from the masterlibrary: Calculate point
x1,y1 that is distance dis and angle ang from point x,y
You will have to do the actual drawing.
-= Mike
On 3/21/15 11:12 AM, Richmond wrote:
On 21/03/15 17:09, Richmond wrote:
On 21/03/15 13:57, Jim Hurley wrote:
Message: 21
Date: Sat, 21 Mar 2015 09:02:23 +0200
From: Richmond <richmondmathew...@gmail.com
<mailto:richmondmathew...@gmail.com>>
To: How to use LiveCode <use-livecode@lists.runrev.com
<mailto:use-livecode@lists.runrev.com>>
Subject: Automated Drawing
Message-ID: <550d177f.10...@gmail.com
<mailto:550d177f.10...@gmail.com>>
Content-Type: text/plain; charset=utf-8; format=flowed
I set up a little stack with THIS in a button:
on mouseUp
choose pencil tool
drag from 100,100 to 200,200
end mouseUp
and it drew me a jolly diagonal line . . . super!
HOWEVER
I wonder if it is possible to do something like THIS:
drag for 100 pixels at 60 degrees
probably not, BUT ??????
Richmond.
Of course:
on mouseUp
startTurtle
setHeading 60
forward 100
end mouseUp
You have in a matter of seconds made me feel totally stupid as my
whole question is geared
towards an interface I am designing to control a USB-tethered turtle.
Thank you for the great help.
Richmond.
Possibly NOT as stupid as all that:
"button "Button": execution error at line 2 (Handler: can't find
handler) near "startTurtle", char 1"
Richmond.
_______________________________________________
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
_______________________________________________
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