Sha256: 385f27130d56abef0477966ab8dc1e1ad1caf1ebc4d414947eaaee97231e4982
Contents?: true
Size: 431 Bytes
Versions: 67
Compression:
Stored size: 431 Bytes
Contents
#!/usr/local/bin/ruby -w require 'RMagick' # Demonstrate the Image#colorize method by converting # a full-color image to "sepia-tone" img = Magick::Image.read('images/Flower_Hat.jpg').first # Convert the color image to monochrome mono = img.quantize(256, Magick::GRAYColorspace) # Colorize with a 30% blend of a brownish-orange color colorized = mono.colorize(0.30, 0.30, 0.30, '#cc9933') colorized.write('colorize.jpg') exit
Version data entries
67 entries across 67 versions & 2 rubygems