lib/chunky_png/canvas/operations.rb in chunky_png-1.3.5 vs lib/chunky_png/canvas/operations.rb in chunky_png-1.3.6

- old
+ new

@@ -271,10 +271,9 @@ # This method will change the current canvas. # # @return [ChunkyPNG::Canvas] Itself, but rotated clockwise. # @see #rotate_right for a version that leaves the current canvas intact def rotate_right! - rotated = self.class.new(height, width) new_pixels = [] 0.upto(width - 1) { |i| new_pixels += column(i).reverse } replace_canvas!(height, width, new_pixels) end