Sha256: 8b826d332f1bdf4622e17a6394af13475c02a98657ec19a700c6283db9fc5938
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 Bytes
Contents
# tags example t= text"touch me to color all objects that share the tag : my_cool_tag " b = box({ size: 66 , y: 33}) b.tag("my_tag") c = circle({ x: 200, y: 33 }) batch([b,c, t]).tag('my_cool_tag') c2=circle({x: 200, y: 96, color: :green, tag: :other_tag}) b.add({ tag: :new_tag }) t.touch do grab(:view).find({ tag: "my_cool_tag" }).color(:yellow) grab(:view).find({ tag: "my_cool_tag" }).each do |item| end t.content("the box have the tags : #{b.tag}, \nthe green circle has the tag :#{c2.tag} ") 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/tags.rb |
atome-0.4.5.4 | vendor/assets/build/medias/rubies/examples/Old_examples/tags.rb |