14 lines
265 B
Python
Executable File
14 lines
265 B
Python
Executable File
from Command import *
|
|
from Program import *
|
|
|
|
class Kleber:
|
|
|
|
def __init__(self):
|
|
self.out='IN;SP1;'
|
|
def hpgl(self,w,h,d):
|
|
dist=1.05
|
|
for i in range(w):
|
|
for j in range(h):
|
|
self.out+=('PU'+str(dist*(i*2*d+d))+','+str(dist*(j*2*d+d))+';CI'+str(d)+';')
|
|
|