enable to show a baloon
enable to show phrase in the baloon
divide baloon class
[from now] Tue Dec  3 19:20:10 JST 2013

diff --git a/app.rb b/app.rb
index 86679c1..a187a30 100644
--- a/app.rb
+++ b/app.rb
@@ -3,6 +3,7 @@ require "rmagick"
 require 'rvg/rvg'
 include Magick

+
 get '/' do
   headers 'Content-Type' => "image/jpeg"
   baloon_overprinted_image(material: image, sentence: params[:sentence])
@@ -28,9 +29,21 @@ def baloon_overprinted_image(args)
   base_width = args[:material].width
   base_height = args[:material].height

-  baloon_height = args[:material].height / 4
+  baloon_height = args[:material].height / 3.7
   baloon_width = baloon_height / 1.6

+  face = args[:material][:face_data].first["face"]
+  face_center = { x: face["x"] + face["width"] / 2, y: face["y"] + face["height"] }
+
+  x = Proc.new {
+    face_center
+    args[:material]
+  }.call
+
+  y = Proc.new {
+
+  }.call
+
   baloon_obj = Baloon.new(base_width: base_width, base_height: base_height,
                           x: base_width / 2, y: base_height / 2,
                           width: baloon_width, height: baloon_height,
modify README