-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBenjoPinker.rb
56 lines (47 loc) · 907 Bytes
/
BenjoPinker.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
require './PlumPott.rb'
require './Okuda.rb'
class BenjoTop < PlumPott
MARJ = 9/25.4
def initialize(starx, stary)
@width = mm(162)
@heigh = mm(162)
super(starx, stary)
end
def mm(i) return i/25.4 end
def dx(x)
return @curxo + mm(x)
end
def dy(y)
return @stary + mm(y)
#return @stary + mm(y)
end
def JOHNSON(x,y,r)
johnson(dx(x),dy(y))
end
def boxo()
@curxo += MARJ
@curxo += $halfwidth
for i in 0..9 do
for j in 0..9 do
JOHNSON(i*18,j*18-18*4.5,0)
end
end
spyrtub(dx(18*4.5),0,0.25,0)
@curxo += @width/2
@myOkuda = Okuda.new(@curxo,@stary,@width+MARJ*2+$bitwidth,@heigh+MARJ*2+$bitwidth,mm(8))
@curxo += @width/2
@curxo += MARJ
@curxo += $halfwidth
return @curxo
end
def ducabot
topnuys = []
botnuys = []
@myOkuda.bokchoy(-@depth,1.0,16,16)
end
def duxo
@curxo += $bitwidth
return @curxo
end
end
stutterat(BenjoTop)