In [1]:
from Myro import *
from Graphics import *
In [2]:
init('sim')
You are using:
   Simulated Fluke, version 1.0.0
   Simulated Scribbler 2, version 1.0.0
Hello, my name is 'Scribby'!
In [3]:
w = getWindow()
In [4]:
p = takePicture()
In [5]:
Picture(w)
Out[5]:
In [6]:
p
Out[6]:
In [7]:
w.toSVG()
Out[7]:
In [15]:
from Graphics import *
import Myro

size = 300
win = Window("Turtle Graphics", size, size)
#win.setBackground(Color("white"))
turtle = Arrow((size/2, size/2), 0)
turtle.draw(win)
turtle.penDown()

def f(dist, angle, incr, segs):
  for i in range(segs):
    turtle.forward(dist * (size * .35))
    turtle.rotate(-angle)
    dist += incr

f(.01, 89.5, .01, 184)
#calico.SVG(win.toSVG())
win.saveToSVG("out.svg")
In [9]:
Picture(win)
Out[9]:
In [10]:
from Myro import *
from Graphics import *
w = Window(500, 500)
w.setBackground(Color(255, 255, 255))
#w.mode = "bitmap"
c = Circle((250, 250), 200)
c.setWidth(6)
c.draw(w)
Picture(w)
Out[10]:
In [11]:
w
Out[11]:
In [12]:
show(Picture(w))
In [ ]: