Sha256: e01418390f9453ef98f08f7e1d0a64975321e49ffa0a8f22704b772db92dbed1

Contents?: true

Size: 600 Bytes

Versions: 2

Compression:

Stored size: 600 Bytes

Contents

# the display API is used both to visualize an object or not but also when displaying atome in a special way : cf VR mode
# this API must be umerge with the render API (for list mode etc..)
# attention : "render" false remove the object from the DOM while "display" jsut make it invisible on the screen, We may
# keep the two behaviors

b=box({id: :toto, color: :green, display: false, atome_id: :the_box})
# b=box({id: :toto, color: :green, display: :none})
# b.display(true)
wait 2 do
  b.display(true)
end

b.touch do
  # b.display(false)
  b.render(false)
  wait 4 do
    b.render(true)
  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/display.rb
atome-0.4.5.4 vendor/assets/build/medias/rubies/examples/Old_examples/display.rb