Adding in alpha transparency to png

This commit is contained in:
Andy Meneely
2014-07-18 15:36:58 -04:00
parent 131aa56e0a
commit a91b3189fc
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
module Squib
class Deck
def png(range: :all, file: nil, x: 0, y: 0)
def png(range: :all, file: nil, x: 0, y: 0, alpha: 1.0)
range = rangeify(range)
file = fileify(file)
range.each{ |i| @cards[i].png(file, x, y) }
range.each{ |i| @cards[i].png(file, x, y, alpha) }
end
def svg(range: :all, file: nil, x: 0, y: 0)