require 'dxruby'

x = 0
image = Image.new(100,100,C_WHITE)

proc = Proc.new do 
  x += 1
  Window.draw(x, 100, image)
end

Window.autocall[proc] = :call

Window.loop do
  break if Input.key_push?(K_ESCAPE)
end


