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')

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

draw12

draw12() Instance Public methods Hand

2015-06-05 14:54:05
move7

move7(step = nil) Instance Public methods

2015-06-05 18:41:31
move6

move6(step = nil) Instance Public methods

2015-06-05 18:35:34
round_rect

round_rect(xy, radius, opts={}) Instance Public methods

2015-06-05 19:29:11
move24

move24(step = nil) Instance Public methods

2015-06-05 18:02:39
reset

reset() Instance Public methods

2015-06-05 19:11:49
move21

move21(step = nil) Instance Public methods

2015-06-05 17:49:00
draw1

draw1() Instance Public methods Dropping ball

2015-06-05 14:37:01
draw14a

draw14a(side) Instance Public methods

2015-06-05 15:02:08
rotate_c

rotate_c(x, y, ox, oy, beta) Instance Public methods

2015-06-05 19:20:12