Sha256: 9966ed6a19c85c46fc386a3f4844d3ed4502e6337fdbe9af41a1a45b224470a7

Contents?: true

Size: 316 Bytes

Versions: 2

Compression:

Stored size: 316 Bytes

Contents

# virtual_event example

c=circle({atome_id: :circle_1, x: 69, y: 99})

c.touch do
  if c.color==:red
    c.color(:yellowgreen)
  else
    c.color(:red)
  end
end

t=text({content:  "touch me send a virtual touch to the circle", x: 99})

t.touch do
  grab(:circle_1 ).virtual_event({ event: :touch ,x: 30, y:30})
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
atome-0.4.7.0 vendor/assets/build/medias/rubies/examples/Old_examples/virtual_events.rb
atome-0.4.5.4 vendor/assets/build/medias/rubies/examples/Old_examples/virtual_events.rb