Sha256: f31b71d0ac9e0adafdaee7471491b226d25ac2e59b4f4f3544e0eabd9b645e04

Contents?: true

Size: 421 Bytes

Versions: 16

Compression:

Stored size: 421 Bytes

Contents

#  frozen_string_literal: true

b = box({ left: 333, color: :blue, smooth: 6, id: :the_box2 })

t = text({ id: :the_text, data: 'touch the box and wait!' })

exec_code=lambda do

  wait 2 do
    t.data('it works!! ')
  end

end
b.code(:hello) do
  circle({ left: rand(333), color: :green })
end
b.run(:hello)
b.touch(:tap) do
  {
    color: :cyan,
    target: { the_text: { data: :super! } },
    run: exec_code
  }
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
atome-0.5.7.6.5 vendor/assets/src/medias/utils/examples/particles/target/example.rb
atome-0.5.7.6.0 vendor/assets/application/examples/target.rb
atome-0.5.7.5.9 vendor/assets/application/examples/target.rb
atome-0.5.7.5.4 vendor/assets/application/examples/target.rb
atome-0.5.7.5.3 vendor/assets/application/examples/target.rb
atome-0.5.7.5.1 vendor/assets/application/examples/target.rb
atome-0.5.7.4.8 vendor/assets/application/examples/target.rb
atome-0.5.7.4.7 vendor/assets/application/examples/target.rb
atome-0.5.7.4.6 vendor/assets/application/examples/target.rb
atome-0.5.7.4.3 vendor/assets/application/examples/target.rb
atome-0.5.7.4.2 vendor/assets/application/examples/target.rb
atome-0.5.7.3.9 vendor/assets/application/examples/target.rb
atome-0.5.7.3.6 vendor/assets/application/examples/target.rb
atome-0.5.7.3.5 vendor/assets/application/examples/target.rb
atome-0.5.7.3.3 vendor/assets/application/examples/target.rb
atome-0.5.7.3.2 vendor/assets/application/examples/target.rb