Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor changes

  • Loading branch information...
commit 32d8999b801829a7caa33adc8c067128371f0f20 1 parent 1a443b8
rmagick authored
View
2  examples/crop_with_gravity.rb
@@ -10,7 +10,7 @@
require 'RMagick'
include Magick
-shorts = Image.read('images/Shorts.jpg').first
+shorts = Image.read('../doc/ex/images/Shorts.jpg').first
regwidth = shorts.columns/2
regheight = shorts.rows/2
View
4 examples/demo.rb
@@ -17,12 +17,12 @@
begin
puts "Read images..."
- model = ImageList.new("images/model.miff")
+ model = ImageList.new("../doc/ex/images/model.miff")
model.border_color = "black"
model.background_color = "black"
model.cur_image[:Label] = "RMagick"
- smile = ImageList.new("images/smile.miff")
+ smile = ImageList.new("../doc/ex/images/smile.miff")
smile.border_color = "black"
smile.cur_image[:Label] = "Smile"
View
1  examples/spinner.rb
@@ -34,6 +34,7 @@
angle = x * (360/NFRAMES)
NFRAMES.times do
gc.rotate(angle)
+ intensity = [intensity, Magick::QuantumRange].min
fill_color = Magick::Pixel.new(intensity, intensity, intensity).to_color
gc.fill(fill_color)
gc.roundrectangle(7, -1, 15, 0, 1, 1)
Please sign in to comment.
Something went wrong with that request. Please try again.