class Teaas::Fire
Public Class Methods
fire(original_img)
click to toggle source
Takes in an image, and adds flames to it. Best when used with {Teaas::Turboize.turbo} to generate multiple rotation speeds.
@param original_img [Magick::ImageList] The image to be engufled in flames @return [Magick::ImageList] The image, now on fire
# File lib/teaas/fire.rb, line 7 def self.fire(original_img) Overlayer.overlay(original_img, Magick::ImageList.new(Teaas.root + "/img/fire.gif")) end
fire_from_file(path)
click to toggle source
Takes in a path to an image, and adds flames to it. Best when used with {Teaas::Turboize.turbo} to generate multiple rotation speeds. This is a wrapper around {Teaas::Blood.blood}
@param path [String] Path to the image to be engulfed in flames @return [Magick::ImageList] The image, now on fire
# File lib/teaas/fire.rb, line 15 def self.fire_from_file(path) img = Magick::ImageList.new # Grab the first element in array to prevent strange things when an # animated image is submitted img.read(path)[0] fire(img) end