rubylabs 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.3
1
+ 0.7.4
File without changes
data/bin/statistics2.rb CHANGED
File without changes
data/lib/spherelab.rb CHANGED
@@ -532,13 +532,15 @@ module SphereLab
532
532
 
533
533
  def view_system(blist, userOptions = {})
534
534
  Canvas.init(700, 700, "SphereLab")
535
+ if prev = @@drawing
536
+ prev.bodies.each { |x| x.graphic = nil }
537
+ end
535
538
  options = @@viewerOptions.merge(userOptions)
536
539
  origin = setOrigin(options[:origin])
537
540
  sf = setScale(blist, options[:origin], options[:scale])
538
541
  blist.each do |b|
539
542
  x, y = scale(b.position, origin, sf)
540
- circle = Canvas.circle(x, y, b.size, :fill => b.color)
541
- b.graphic = circle
543
+ b.graphic = Canvas.circle(x, y, b.size, :fill => b.color)
542
544
  b.prevx = x
543
545
  b.prevy = y
544
546
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubylabs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - conery
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-01 00:00:00 -08:00
12
+ date: 2010-03-02 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15