Sha256: e963481d841c8f6da2555f8e086c14929523d7087f27200b3f137ac4a738df6a

Contents?: true

Size: 694 Bytes

Versions: 2

Compression:

Stored size: 694 Bytes

Contents

# refresh example

c=circle({ atome_id: :circle})
c.text({content: "click me", atome_id: :text_2, shadow: true })
color=[:red, :green,:yellowgreen, :purple, :blue, :yellow, :orange, :pink, :black, :white].sample
time=Time.now
text({content: time, color: color, x:66, y: 66, atome_id: :text_1, shadow: true})
c.color(color)
c.touch do
  refresh("./medias/rubies/examples/refresh.rb")
end
# Possible syntax are :
# refresh #without arguments it refresh the current page
# refresh("./medias/rubies/examples/animation.rb")
# refresh({ source: "./medias/rubies/examples/animation.rb" })
# refresh({ target: :circle })
# refresh({ target: :circle , source: "./medias/rubies/examples/animation.rb" })

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