Sha256: 27294a78d298b2ac022479ed3f4256c74c87028212849816d92f33bbb22cc867
Contents?: true
Size: 607 Bytes
Versions: 2
Compression:
Stored size: 607 Bytes
Contents
# touch example b = box({ x: 96, y: 6, text: { content: "on mouse down", center: true, color: :black } }) b.touch({ option: :down }) do b.color(:orange) b.x = b.x + 10 end t=text({content: "kill touch\non box"}) t.touch do b.touch({remove: :true }) end c = circle({ x: 33, y: 96, text: { content: "on mouse up", center: true, color: :black } }) c.touch({ option: :up}) do anim({ start: {x: 0, y: 0, smooth: 0, rotate: 20}, end: {x: 400, y: 70, smooth: 25, rotate: 180}, duration: 2000, loop: 3, curve: :easing, target: c.atome_id }) 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/touch.rb |
atome-0.4.5.4 | vendor/assets/build/medias/rubies/examples/Old_examples/touch.rb |