blob: 54fe5383a95ba61e757656f51048b1bd4be18a6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from math import *
print "G20 F60"
print "G64 P0.001"
print "G0 X0 Y0 Z0"
a=.1
for i in range(100):
t = i/10.
x = a * (cos(t) + t * sin(t))
y = a * (sin(t) - t * cos(t))
print "G1 X%f Y%f" % (x,y)
print "M2"
|