Permalink
Browse files

Minor changes

  • Loading branch information...
1 parent 1a443b8 commit 32d8999b801829a7caa33adc8c067128371f0f20 rmagick committed Mar 23, 2007
Showing with 4 additions and 3 deletions.
  1. +1 −1 examples/crop_with_gravity.rb
  2. +2 −2 examples/demo.rb
  3. +1 −0 examples/spinner.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
@@ -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
@@ -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)

0 comments on commit 32d8999

Please sign in to comment.