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

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

draw22
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

draw22() Instance Public methods Bucket drop

2025-01-10 15:47:30
rotate_item
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

rotate_item(item, ox, oy, beta) Instance Public methods

2025-01-10 15:47:30
draw7
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

draw7() Instance Public methods On/off switch

2025-01-10 15:47:30
move20
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

move20(step = nil) Instance Public methods

2025-01-10 15:47:30
draw9
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

draw9() Instance Public methods Fan

2025-01-10 15:47:30
draw23
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

draw23() Instance Public methods Blow dart

2025-01-10 15:47:30
move4
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

move4(step = nil) Instance Public methods

2025-01-10 15:47:30
move_abs
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

move_abs(item, xy) Instance Public methods

2025-01-10 15:47:30
draw18
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

draw18() Instance Public methods Sling shot

2025-01-10 15:47:30
move17
  • References/Ruby on Rails/Ruby/Classes/TkGoldberg_Demo

move17(step = nil) Instance Public methods

2025-01-10 15:47:30