Sha256: 8bb0754d2f8a905edfecb7e314bed0c279b3aefd3500750e65c07958cc2ed62f

Contents?: true

Size: 674 Bytes

Versions: 71

Compression:

Stored size: 674 Bytes

Contents

# frozen_string_literal: true

c = circle({ height: 400, width: 200, top: 100, left: 0, top: 100 })
b = c.box({ width: 200, height: 100, left: 600, top: 200, id: :my_box })
c.circle({ width: 200, height: 100, left: 120, top: -80, id: :my_text, data: :hi })
b.circle({ color: :yellow, width: 55, height: 88, left: 100 })
b.box
i=c.image({path: 'medias/images/red_planet.png', id: :the_pix })
# b.text(:red_planet)

wait 1 do

  c.fit({ value: 100, axis: :x })

  wait 1 do
    c.fit({ value: 66, axis: :y })
    wait 1 do
      c.fit({ value: 600, axis: :x })
    end
  end
end
# alert i.width
# alert i.height
# i.fit({ value: 66, axis: :x })
#  i.width(66)
#  i.height(66)

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
atome-0.5.7.0.7 vendor/assets/application/examples/fit.rb
atome-0.5.7.0.5 vendor/assets/application/examples/fit.rb
atome-0.5.7.0.4 vendor/assets/application/examples/fit.rb
atome-0.5.7.0.3 vendor/assets/application/examples/fit.rb
atome-0.5.7.0.2 vendor/assets/application/examples/fit.rb
atome-0.5.6.8.7 vendor/assets/application/examples/fit.rb
atome-0.5.6.8.6 vendor/assets/application/examples/fit.rb
atome-0.5.6.8.5 vendor/assets/application/examples/fit.rb
atome-0.5.6.8.3 vendor/assets/application/examples/fit.rb
atome-0.5.6.7.8 vendor/assets/application/examples/fit.rb
atome-0.5.6.7.7 vendor/assets/application/examples/fit.rb
atome-0.5.6.7.6 vendor/assets/application/examples/fit.rb
atome-0.5.6.7.5 vendor/assets/application/examples/fit.rb
atome-0.5.6.7.4 vendor/assets/application/examples/fit.rb
atome-0.5.6.7.3 vendor/assets/application/examples/fit.rb
atome-0.5.6.6.9 vendor/assets/application/examples/fit.rb
atome-0.5.6.6.7 vendor/assets/application/examples/fit.rb
atome-0.5.6.6.5 vendor/assets/application/examples/fit.rb
atome-0.5.6.6.1 vendor/assets/application/examples/fit.rb
atome-0.5.6.6.0 vendor/assets/application/examples/fit.rb