Drag a Graphic Tool
Roger Guay
rogerguay at centurytel.net
Mon Nov 29 17:02:03 EST 2004
Great idea Jim, although, I did so want to make use of the dragSpeed
thing to have precise control of the trace. Turtle Graphics will
provide a great compromise!
Thanks, Roger
On Nov 29, 2004, at 8:01 AM, use-revolution-request at lists.runrev.com
wrote:
> Actually you can set the "linesize" of the line or polygon tool; you
> can have both your arrow and line size.
>
> What you need apparently is more intermediate points in order to
> control rate of drawing between end points. One way to do this would
> be with, you guessed it, Turtle Graphics. (You would want the version
> that does vector graphics, not bit map.) For example, you could
> control the motion between any two points A and B as follows:
>
> on mouseUP
> put 0,0 into A
> put 300,300 into B
> startTurtle
> setXY A
> setheading direction(B)
> put distance(B) into d
> put 3 into s --Or whatever works for you
> repeat round(d/s) times
> forward s
> --Perhaps a "wait" here
> end repeat
> setxy B --Just to take care of the rounding error
> end mouseUP
>
> And you could iterate this to take you through a sequence of points.
>
> Jim
More information about the use-livecode
mailing list