rubylabs 0.7.3 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/bin/statistics2-0.53/statistics2.rb +0 -0
- data/bin/statistics2.rb +0 -0
- data/lib/spherelab.rb +4 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
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
|
-
|
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.
|
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-
|
12
|
+
date: 2010-03-02 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|