Sha256: 63f9ff040e640d958ef1a781712159ff9970b58f66f790aaa3b4934974949f9c

Contents?: true

Size: 351 Bytes

Versions: 8

Compression:

Stored size: 351 Bytes

Contents

# frozen_string_literal: true

# the materials method is used to retrieve or delete all children with a visual rendering
# but leave alone other atome such as color
b = box
cc2 = color(:yellow)
b.color(:red)
c = b.circle
c.attached(cc2.id)
b.text(:hello)
b.add(text: { data: :ok, left: 133 })
wait 2 do
  b.delete(:materials)
  puts "b is : #{b}"
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
atome-0.5.4.1.9 vendor/assets/src/medias/rubies/examples/materials.rb
atome-0.5.4.1.7 vendor/assets/src/medias/rubies/examples/materials.rb
atome-0.5.4.1.3 vendor/assets/src/medias/rubies/examples/materials.rb
atome-0.5.4.1.2 vendor/assets/src/medias/rubies/examples/materials.rb
atome-0.5.4.1.1 vendor/assets/src/medias/rubies/examples/materials.rb
atome-0.5.4.1.0 vendor/assets/src/medias/rubies/examples/materials.rb
atome-0.5.4.0.9 vendor/assets/src/medias/rubies/examples/materials.rb
atome-0.5.3.8.8 vendor/assets/src/medias/rubies/examples/materials.rb