Sha256: a4e61f07e6a1b8cb1901a81160f7251188962943a54a88da1b0f80f88c3d5ade

Contents?: true

Size: 198 Bytes

Versions: 6

Compression:

Stored size: 198 Bytes

Contents


class UIImage

  def uicolor(alpha=nil)
    color = UIColor.colorWithPatternImage(self)
    if not alpha.nil?
      color = color.colorWithAlphaComponent(alpha.to_f)
    end

    color
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sugarcube-0.1.6 lib/sugarcube/uiimage.rb
sugarcube-0.1.5 lib/sugarcube/uiimage.rb
sugarcube-0.1.4 lib/sugarcube/uiimage.rb
sugarcube-0.1.3 lib/sugarcube/uiimage.rb
sugarcube-0.1.2 lib/sugarcube/uiimage.rb
sugarcube-0.1.1 lib/sugarcube/uiimage.rb