s = Sprite.new
s.bitmap = Bitmap.new(200, 200)
s.bitmap.fill_rect(s.bitmap.rect, Color.new(255,255,255))
s.zoom_x = s.zoom_y = 0
s.x, s.y = 250, 250
s.ox, s.oy = s.bitmap.width, s.bitmap.height
loop do
s.zoom_x += 0.01 if s.zoom_x < 1
s.zoom_y += 0.01 if s.zoom_y < 1
s.zoom_x = 1 if s.zoom_x > 1
s.zoom_y = 1 if s.zoom_y > 1
Graphics.update
end
s = Sprite.new
s.bitmap = Bitmap.new(200, 200)
s.bitmap.fill_rect(s.bitmap.rect, Color.new(255,255,255))
s.zoom_x = s.zoom_y = 0
s.x, s.y = 250, 250
s.ox, s.oy = s.bitmap.width, s.bitmap.height
loop do
s.zoom_x += 0.01 if s.zoom_x < 1
s.zoom_y += 0.01 if s.zoom_y < 1
s.zoom_x = 1 if s.zoom_x > 1
s.zoom_y = 1 if s.zoom_y > 1
Graphics.update
end