OSDN Git Service

e
[pettanr/pettanr.git] / lib / peta / element.rb
index 4f345eb..91092a2 100644 (file)
@@ -59,6 +59,13 @@ module Peta
       r
     end
     
+    def merge_opacity s, opacity
+      s.merge({
+        'opacity' => opacity.to_f/100, 
+        'filter' => "alpha(opacity=#{opacity})"
+      })
+    end
+    
   end
 end