Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bug

  • Loading branch information...
commit 9a4c079b81751f9d62f171b03a0251248c272214 1 parent 6759166
rmagick authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 doc/ex/affine_transform.rb
View
6 doc/ex/affine_transform.rb
@@ -3,11 +3,11 @@
# Demonstrate the Image#affine_transform method
-# Construct a simple affine matrix
-flipflop = Magick::AffineMatrix.new(-1, Math::PI/6, Math::PI/6, -1, 0, 0)
-
img = Magick::Image.read("images/Flower_Hat.jpg").first
+# Construct a simple affine matrix
+flipflop = Magick::AffineMatrix.new(1, Math::PI/6, Math::PI/6, 1, 0, 0)
+
# Apply the transform
img = img.affine_transform(flipflop)
Please sign in to comment.
Something went wrong with that request. Please try again.