vendor/assets/application/examples/random.rb in atome-0.5.6.2.5 vs vendor/assets/application/examples/random.rb in atome-0.5.6.2.7
- old
+ new
@@ -7,21 +7,21 @@
b.duplicate({ left: b.left + index * (width_found + 45), top: 0, category: :matrix })
end
Universe.user_atomes.each do |atome_id|
- atome_found = grab(atome_id)
+ atome_found = hook(atome_id)
if atome_found.type == :shape
atome_found.color(:orange)
atome_found.smooth(200)
atome_found.top(200)
end
end
random_found =Universe.user_atomes.sample(7)
random_found.each do |atome_id|
- atome_found = grab(atome_id)
+ atome_found = hook(atome_id)
if atome_found.type == :shape
atome_found.top(rand(600))
atome_found.width(rand(120))
atome_found.height(rand(120))
atome_found.smooth(rand(120))
@@ -29,10 +29,10 @@
end
end
random_found =Universe.user_atomes.sample(9)
random_found.each do |atome_id|
- atome_found = grab(atome_id)
+ atome_found = hook(atome_id)
if atome_found.type == :shape
atome_found.left(rand(700))
atome_found.width(rand(120))
atome_found.height(rand(120))
atome_found.smooth(rand(120))