Sha256: e2903ea9383311d2a219af623726123e8de0ba9298cf0eeb444dd8845f2affeb

Contents?: true

Size: 287 Bytes

Versions: 12

Compression:

Stored size: 287 Bytes

Contents

# Same snippet as http://shoes.heroku.com/manual/Events.html#motion{|left,top|...}

require 'green_shoes'

Shoes.app width: 200, height: 200 do
  background black
  fill white
  @circ = oval 0, 0, 100, 100
  motion do |top, left|
    @circ.move top - 50, left - 50
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
green_shoes-1.1.374 samples/sample11.rb
green_shoes-1.1.373 samples/sample11.rb
green_shoes-1.1.367 samples/sample11.rb
green_shoes-1.1.366 samples/sample11.rb
green_shoes-1.1.365 samples/sample11.rb
green_shoes-1.1.364 samples/sample11.rb
green_shoes-1.1.363 samples/sample11.rb
green_shoes-1.1.362 samples/sample11.rb
green_shoes-1.1.358 samples/sample11.rb
green_shoes-1.1.357 samples/sample11.rb
green_shoes-1.1.354 samples/sample11.rb
green_shoes-1.1.348 samples/sample11.rb