Sha256: 1986f45b694ef7fa41fe66ad65b7949cbd403a36d72fdbe795129dda2b01c663

Contents?: true

Size: 412 Bytes

Versions: 2

Compression:

Stored size: 412 Bytes

Contents

# double and long touch example
b=box
b.touch ({ option: :double, delay: 0.6 }) do
  # b.x=b.x+60
  if b.color==:yellow
    b.color=:green
  else
    b.color=:yellow
  end
end
c=circle({ x: 99 })

c.touch ({ option: :long, delay: 1 }) do
  # c.x=c.x+60
  if c.color==:red
    c.color=:blue
  else
    c.color=:red
  end
end

# delay(in seconds) is optional and set latency before tow touchs or the time to wait

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/double_and_long_touch.rb
atome-0.4.5.4 vendor/assets/build/medias/rubies/examples/Old_examples/double_and_long_touch.rb