Type:
Class

# label msg = TkLabel.new($goldberg_demo) {

font 'Arial 10'
wraplength '4i'
justify 'left'
text "This is a demonstration of just how complex you can make your animations become. Click the ball to start things moving!\n\n\"Man will always find a difficult means to perform a simple task\"\n - Rube Goldberg"

} msg.pack('side'=>'top')

# frame TkFrame.new($goldberg_demo) {|frame|

TkButton.new(frame) {
  text 'Dismiss'
  command proc{
    tmppath = $goldberg_demo
    $goldberg_demo = nil
    tmppath.destroy
  }
}.pack('side'=>'left', 'expand'=>'yes')

TkButton.new(frame) {
  text 'See Code'
  command proc{showCode 'goldberg'}
}.pack('side'=>'left', 'expand'=>'yes')

}.pack('side'=>'bottom', 'fill'=>'x', 'pady'=>'2m')

#########################################

# label msg = TkLabel.new($goldberg_demo) {

font 'Arial 10'
wraplength '4i'
justify 'left'
text "これは、あなたが自分のアニメーションをいかに入り組んだものにできるかを示すというだけのためのデモです。ボールをクリックすれば物が動き始めます!\n\n\"Man will always find a difficult means to perform a simple task\"\n - Rube Goldberg"

} msg.pack('side'=>'top')

# frame TkFrame.new($goldberg_demo) {|frame|

TkButton.new(frame) {
  text '閉じる'
  command proc{
    tmppath = $goldberg_demo
    $goldberg_demo = nil
    tmppath.destroy
  }
}.pack('side'=>'left', 'expand'=>'yes')

TkButton.new(frame) {
  text 'コード参照'
  command proc{showCode 'goldberg'}
}.pack('side'=>'left', 'expand'=>'yes')

}.pack('side'=>'bottom', 'fill'=>'x', 'pady'=>'2m')

#########################################

draw21

draw21() Instance Public methods Bucket

2015-06-05 15:50:37
draw6

draw6() Instance Public methods Dropping gumballs

2015-06-05 16:16:54
draw6a

draw6a(beta) Instance Public methods

2015-06-05 16:19:29
draw19

draw19() Instance Public methods Water pipe

2015-06-05 15:35:06
move1

move1(step = nil) Instance Public methods

2015-06-05 16:50:28
_round_poly2

_round_poly2(x0, y0, x1, y1, x2, y2, radius) Instance Public methods

2015-06-05 13:50:40
show_ctrl

show_ctrl() Instance Public methods

2015-06-05 19:32:18
move26

move26(step = nil) Instance Public methods Collapsing balloon

2015-06-05 18:11:32
about

about() Instance Public methods

2015-06-05 13:56:55
round_poly

round_poly(canv, xy, radii, opts) Instance Public methods

2015-06-05 19:26:04