Anonymous user
Wireworld/Ruby: Difference between revisions
m
add Shoes version
(Moving from main task page to shorten it) |
m (add Shoes version) |
||
Line 174:
ww.run_tk
puts 'bye'</lang>
{{libheader|Shoes}}
<lang ruby>$ww = WireWorld.new <<WORLD
......tH
. ......
...Ht... .
....
. .....
....
tH...... .
. ......
...Ht...
WORLD
Shoes.app do
@world = para('', :family => 'monospace')
animate(4) do
@world.text = $ww.to_s
$ww.transition
end
end</lang>
|