Sha256: a8256ca91ba056e2e7cd778c0a6b282fd56aec794aeafc8b943f50c2dc26a4e3

Contents?: true

Size: 1.31 KB

Versions: 22

Compression:

Stored size: 1.31 KB

Contents

# frozen_string_literal: true

b = box({ top: 166, data: :hello })
c=color({ id: :col1, red: 1, blue: 1})

b.instance_variable_set("@top", 30)
b.instance_variable_set("@apply", [c.id])
b.instance_variable_set("@path", './medias/images/red_planet.png' )

b.instance_variable_set("@smooth", 30)
wait 1 do
  b.refresh
  b.instance_variable_set("@left", 300)
  wait 1 do
    b.refresh
    b.instance_variable_set("@type", :text)
    wait 1 do
      b.refresh
      b.instance_variable_set("@type", :image)
      wait 1 do
        b.refresh
      end
    end
  end
end
i=image(:green_planet)
# alert i.path
i.instance_variable_set("@path", './medias/images/red_planet.png')
wait 2 do
  i.refresh
  # i.path'./medias/images/red_planet.png'
end


#
# b.instance_variable_set("@left", 300)
# b.instance_variable_set("@top", 400)
# # b.instance_variable_set("@width", 150)
#
# # b.instance_variable_set("@smooth", 9)
# # new({particle: :tototo})
#
# wait 1 do
#   b.refresh
#   # b.instance_variable_set("@type", :text)
#   b.instance_variable_set("@smooth", 9)
#   b.instance_variable_set("@apply", [c.id])
#   wait 1 do
#     b.refresh
#     # b.instance_variable_set("@type", :image)
#     # wait 1 do
#     #   alert b.type
#     #   # b.refresh
#     # end
#   end
# end
#
# t=text(:test)
# t.touch(true) do
#   b.smooth(9)
#   b.refresh
# end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
atome-0.5.7.0.7 vendor/assets/application/examples/refresh.rb
atome-0.5.7.0.5 vendor/assets/application/examples/refresh.rb