mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9b52ae2e64
commit
287a34ae0d
856 changed files with 13989 additions and 13989 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
# destroy toplevel widget for this demo script
|
||||
if defined?($aniwave_demo) && $aniwave_demo
|
||||
$aniwave_demo.destroy
|
||||
$aniwave_demo.destroy
|
||||
$aniwave_demo = nil
|
||||
end
|
||||
|
||||
|
|
@ -53,11 +53,11 @@ class AnimatedWaveDemo
|
|||
@direction = dir
|
||||
|
||||
# create canvas widget
|
||||
@c = TkCanvas.new(frame, :width=>300, :height=>200,
|
||||
@c = TkCanvas.new(frame, :width=>300, :height=>200,
|
||||
:background=>'black')
|
||||
@c.pack(:padx=>10, :pady=>10, :expand=>true)
|
||||
|
||||
# Creates a coordinates list of a wave.
|
||||
# Creates a coordinates list of a wave.
|
||||
@waveCoords = []
|
||||
@backupCoords = []
|
||||
n = 0
|
||||
|
|
@ -69,10 +69,10 @@ class AnimatedWaveDemo
|
|||
|
||||
# Create a smoothed line and arrange for its coordinates to be the
|
||||
# contents of the variable waveCoords.
|
||||
@line = TkcLine.new(@c, @waveCoords,
|
||||
@line = TkcLine.new(@c, @waveCoords,
|
||||
:width=>1, :fill=>'green', :smooth=>true)
|
||||
|
||||
# Main animation "loop".
|
||||
# Main animation "loop".
|
||||
# Theoretically 100 frames-per-second (==10ms between frames)
|
||||
@timer = TkTimer.new(10){ basicMotion; reverser }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue