Skip to content

Instantly share code, notes, and snippets.

View JoshReedSchramm's full-sized avatar

Josh Schramm JoshReedSchramm

View GitHub Profile
@JoshReedSchramm
JoshReedSchramm / RMagickPrototype.rb
Created April 6, 2011 17:51
Prototyping turning an image into a masked cloud in RMagick
require "RMagick"
class CloudMasker
def initialize(destination)
@src = Magick::Image.new(190, 100)
@dst = Magick::Image.read(destination)[0]
@mask = Magick::Image.read(MASK_PATH)[0]
end
def make_cloud