Better colorify handling on stroke, fill, and text colors

This commit is contained in:
Andy Meneely
2014-08-07 23:13:03 -04:00
parent 14a060c6ac
commit c2f6ff6e03
2 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ module Squib
# @return [nil] Returns nothing
# @api public
def text(opts = {})
opts = needs(opts, [:range, :str, :font, :x, :y, :width, :height, :text_color, :wrap,
opts = needs(opts, [:range, :str, :font, :x, :y, :width, :height, :color, :wrap,
:align, :justify, :valign, :ellipsize, :hint, :layout])
opts[:str] = [opts[:str]] * @cards.size unless opts[:str].respond_to? :each
opts[:range].each do |i|