Automated Drawing

Jim Hurley jhurley0305 at sbcglobal.net
Sat Mar 21 07:57:10 EDT 2015


> 
> Message: 21
> Date: Sat, 21 Mar 2015 09:02:23 +0200
> From: Richmond <richmondmathewson at gmail.com <mailto:richmondmathewson at gmail.com>>
> To: How to use LiveCode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>>
> Subject: Automated Drawing
> Message-ID: <550D177F.10609 at gmail.com <mailto:550D177F.10609 at 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






More information about the use-livecode mailing list