Displaying 1 result from an estimated 1 matches for "setturtle".
Did you mean:
settitle
2003 Oct 15
0
tkcanvas/bitmap for Turtle World
...ng on
the PC?
(found some for UNIX/LINUX but none on PC).
- is there a simpler way?
Sorry if the question is not exactly R but I am learning to use canvas widget
from tcltk package (thanks to Barry Rowlings and Damon Wischik for their
replies to my previous post).
Gabriel
Here is my function:
setTurtle<-function(turtle,x,y,angle) {
if(angle!=turtle$angle) {
path<-"@c:/Docume~1/Owner/MyDocu~1/MyWork~1/MILAN/UNIHSR/R/turtle_bitmap/"
# select bitmap file (turtle000.xbm, turtle045.xbm, ...)
heading<-(45*(angle*180/pi+22.5)%/%45)%%360
file<-p...