class ImageParadise::ImageParadise
Public Class Methods
esys(i)
click to toggle source
font_tiled(i = DEFAULT_TEXT)
click to toggle source
#¶ ↑
ImageParadise.font_tiled
¶ ↑
#¶ ↑
# File lib/image_paradise/image_paradise.rb, line 77 def self.font_tiled(i = DEFAULT_TEXT) i = DEFAULT_TEXT if i.nil? width_and_height = '500x250' _ = CONVERT+" -size "+width_and_height+" xc:lightblue -font "+ DEFAULT_FONT+" -pointsize 68 -tile pattern:checkerboard -annotate +28+68 '"+i+"' font_tile.jpg" esys _ end
new( i = nil, run_already = true )
click to toggle source
resize(resize_how = '-resize 64x64')
click to toggle source
Public Instance Methods
colourize(rgb_values = '2,15,75')
click to toggle source
#¶ ↑
colourize¶ ↑
Input should be R,G,B values.
#¶ ↑
# File lib/image_paradise/image_paradise.rb, line 107 def colourize(rgb_values = '2,15,75') case rgb_values when :randomize, :random rgb_values = (rand(255)+1).to_s+','+(rand(255)+1).to_s+','+(rand(255)+1).to_s end _ = CONVERT+' -colorize '+rgb_values+' '+input?+' '+output? ImageParadise.esys _ end
esys(i)
click to toggle source
filename?()
click to toggle source
#¶ ↑
filename?¶ ↑
#¶ ↑
# File lib/image_paradise/image_paradise.rb, line 70 def filename? @filename end
Also aliased as: input?
input_output?()
click to toggle source
output?()
click to toggle source
reset()
click to toggle source
run()
click to toggle source