Sha256: f386ae72f8ce87c09d64bcd869fd2bdc6140422143522c1bc81d186c2325b34c
Contents?: true
Size: 448 Bytes
Versions: 2
Compression:
Stored size: 448 Bytes
Contents
# Add example hh = box({ name: :home, x: 99, y: 9, color: :black }) hh.text({ visual: 12, content: "touch the box" }) hh.touch do # this will not be trig if it works correctly alert :kool end hh.touch (:remove) hh.touch do hh.width = hh.width + 9 end hh.add({ touch: { proc: lambda do self.color(:darkred) end } }) hh.add(:touch) do wait 1 do self.color(:white) # hh.delete(true) end wait 2 do color :orange end 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/add.rb |
atome-0.4.5.4 | vendor/assets/build/medias/rubies/examples/Old_examples/add.rb |