Sha256: 7c7ed83632c825b7845a4e87bb02319bbdfc41e5234186a9b39e1f2de5e7d29d

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 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
  # alert b.inspect
  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

1 entries across 1 versions & 1 rubygems

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