[MWForum]large coordinates for "setpos" command

Daniel Ajoy mwforum@lists.mathcats.com
Mon, 13 Sep 2004 11:01:47 -0500


On 13 Sep 2004 at 10:31, Zehava Wizman wrote:

> hello all!
> I want to know the behavier of the turtle against various screen size in 
> getting the command like "setpos [-300 -200], sometime its goes to the 
> lowest point of the screen,and sometimes its goes up, how can I know what is 
> the limit of coordinates of each size,and what's the turtle does is a turn, 
> can we calculate where setpos will be (when its larger than screen)' I 
> search information in Help and didn't find....
>                              thanks Zehava

"where" calculates where setpos will be:

to where :l
make "ps projectsize
make "w (first :ps) / 2
make "h (last :ps) / 2
make "x :w + first :l
make "y :h + last :l
output list (remainder :x :w * 2) - :w (remainder :y :h * 2) - :h
end


t1, setpos [1000 1000]
t2, setpos where [1000 1000]

show where [1000 1000]
256 148


Daniel
OpenWorld Learning (OWL)
http://mia.openworldlearning.org