Sha256: 4c727c9426cda249546c0c363582f29396cdb1e45199f04e48dd7fb3efd0ab20

Contents?: true

Size: 482 Bytes

Versions: 81

Compression:

Stored size: 482 Bytes

Contents

#  frozen_string_literal: true

b = box({ left: 666, color: :blue, smooth: 6, id: :the_box2 })
b.over(true) do
  b.color(:black)
  # puts "I'm inside"
end
b.over(:enter) do
  puts "in"
  puts "enter"
  b.width= b.width+30
  # alert :in
  b.color(:yellow)
end
b.over(:leave) do
  b.height= b.height+10
  puts "out"
  puts "leave"
  # alert :out
  b.color(:orange)
end

#
t=b.text('touch me to stop over leave')
b.touch(true) do
  b.over({ remove: :enter })
  t.data('finished')
end

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
atome-0.5.7.5.4 vendor/assets/application/examples/over.rb
atome-0.5.7.5.3 vendor/assets/application/examples/over.rb
atome-0.5.7.5.1 vendor/assets/application/examples/over.rb
atome-0.5.7.4.8 vendor/assets/application/examples/over.rb
atome-0.5.7.4.7 vendor/assets/application/examples/over.rb
atome-0.5.7.4.6 vendor/assets/application/examples/over.rb
atome-0.5.7.4.3 vendor/assets/application/examples/over.rb
atome-0.5.7.4.2 vendor/assets/application/examples/over.rb
atome-0.5.7.3.9 vendor/assets/application/examples/over.rb
atome-0.5.7.3.6 vendor/assets/application/examples/over.rb
atome-0.5.7.3.5 vendor/assets/application/examples/over.rb
atome-0.5.7.3.3 vendor/assets/application/examples/over.rb
atome-0.5.7.3.2 vendor/assets/application/examples/over.rb
atome-0.5.7.3.1 vendor/assets/application/examples/over.rb
atome-0.5.7.3.0 vendor/assets/application/examples/over.rb
atome-0.5.7.1.8 vendor/assets/application/examples/over.rb
atome-0.5.7.1.7 vendor/assets/application/examples/over.rb
atome-0.5.7.1.0 vendor/assets/application/examples/over.rb
atome-0.5.7.0.7 vendor/assets/application/examples/over.rb
atome-0.5.7.0.5 vendor/assets/application/examples/over.rb