Sha256: 7120301a09774063fe3666b1522db3448a06fd62a6f0ef3947df460a5f40417e

Contents?: true

Size: 499 Bytes

Versions: 2

Compression:

Stored size: 499 Bytes

Contents

a=Atome.new(
  shape: { render: [:html], id: :crasher, type: :shape, parent: [:view], left: 99, right: 99, width: 99, height: 99,
           color: { render: [:html], id: :c315, type: :color,
                    red: 1, green: 0.15, blue: 0.15, alpha: 0.6 } }
)

# attention to modify an atome using Atome.new you must apply your method to the first atome
# here the first atome is shape,  so if you want to make it draggable drag type:

a.shape.drag(true) do |x, y|
  puts "drag position: #{x}"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
atome-0.4.7.0 vendor/assets/build/medias/rubies/examples/atome.new.rb
atome-0.4.5.4 vendor/assets/build/medias/rubies/examples/atome.new.rb