We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e10c61 commit 054a04fCopy full SHA for 054a04f
1 file changed
example/animation.rb
@@ -12,7 +12,7 @@ def out.tty?; true; end
12
Signal.trap(:INT) { continue = false }
13
14
while continue
15
- out.string = ""
+ out.truncate(0)
16
17
xs = 0...N
18
ys = xs.map {|x| Math.sin(2*Math::PI*(x + shift) / N) }
0 commit comments